Tag: #javascript
- Takes 6 min to read.
5 things you can do with CSS instead of JavaScript
In this post, we’ll learn about some CSS golden nuggets you might not have heard about, that will natively (and gracefully!) handle things like smooth scrolling, dark mode, truncation, and more features that previously required multiple lines of JS trickery to work.
- Takes 3 min to read.
Fancy Numbering with CSS Counters
As a front-end developer, it’s likely that you had faced the challenge of styling lists of numbers before: Whether you were building a to-do list, a recipe website or a pagination component, chances are you ended up resorting on JavaScript to do the counting for you. Today, I want to show you a nifty CSS trick that will save up some of your bundle size, by doing all of that with good ol’ CSS. Embrace CSS Counters and the :before pseudo-element!
- Takes 4 min to read.
Ditching the mailto link: Click to Copy Email pattern
According to the statistics, less than 15% of desktop users configure their native apps for email sending. If this is so infrequent, then why we all slam mailto: links in our websites? In this post, we’ll explore some alternate techniques, along with some use cases where it’s worth using it.