CSS variables are very powerful, and they allow to do a lot of interesting things. But there are no native conditionals that we could use in CSS with them. In this article I’ll talk about one of the ways we can fake such conditions with calculations.
I've bookmarked some icon sets lately, partly because I can never find a nice set when I need to. I figured I'd even go the extra mile here and blog them so I
Stealing Game Animation Techniques to Engage Users | CSS-Tricks
Today’s websites are overflowing with animations—often too many. They get in the way of the content and slow down our busy users. But at the same time:
How To Create Advanced Animations With CSS — Smashing Magazine
In this article, Yosra Emad explains how to create a rollercoaster path that a ball follows using cubic beziers and CSS transitions. You’ll also learn how the cubic-bezier function in CSS works in detail and how to stack multiple simple animations to create one complex one.
How to Think Like a Front-End Developer | CSS-Tricks
The topical idea of "how to think like a front-end developer" began for me as a series of podcast interviews on ShopTalk Show. That was in preparation for a
The Widening Responsibility for Front-End Developers | CSS-Tricks
This is an extended version of my essay “When front-end means full-stack” which was published in the wonderful Increment magazine put out by Stripe. It’s also something of an evolution of a couple other of my essays, “The Great Divide” and “Ooops, I guess we’re full-stack developers now.”
You can do an impressive amount of form validation with just HTML attributes. You can make the user experience pretty clean and clear with CSS selectors. But
Methods for Contrasting Text Against Backgrounds | CSS-Tricks
It started with seeing a recent Pen of Mandy Michael's text effects demos. I'm a very visual creature, so the first thing I noticed was the effect, not the
One aspect of web development I've always loathed was working with forms. Form elements have been traditionally difficult to style due to OS and browser
When you’re building a website, you might be tempted to use a transparent background for some elements. For instance, you may want to use a transparent background for the navigation bar or the header of the website.
In my fourth article about scroll-driven animations, I explore how we can transfer the state of one element to a completely different place on a page by connecting them with a unique identifier in CSS via a timeline-scope.