Awaiting browser support for at-rule()
, here’s how you do it.
Tag Archives: at-property
Feature detect CSS
CSS-only Custom Range Slider with Motion
Solved by CSS Scroll-Driven Animations: Style an element based on the active Scroll Direction and Scroll Speed
CSS @property
improvements in Chrome DevTools (Chrome 118)
The gotcha with @property
animating custom properties
@property
CSS Type Grinding: Casting Tokens (sm|md|etc
) into Useful Values (aka Style Queries without Style Queries thanks to @property)
My favorite use case for Style Queries is the ability to change a bunch of styles based on the value of a so called “higher-order variable”. You use that variable as a switch to change a bunch of properties. @container style(–theme: dark) { .card { background: royalblue; border-color: navy; color: white; } .card button { …
Exploring @property
and its Animating Powers
Over at CSS-Tricks Jhey Tompkins has written a solid piece on the amazing @property and the possibilities it opens: We can give the browser the information is needs to transition and animate those properties! Covered in the post, amongst many other interesting demos, are Jhey’s own Pure CSS Stopwatch and my own animated gradient border …
Continue reading “Exploring @property
and its Animating Powers”
Pure CSS Stopwatch ⏱️
Nice demo by Jhey in which he created a Pure CSS Stopwatch: See the Pen Pure CSS Working Stopwatch 😎 (@property) by Jhey (@jh3y) on CodePen. It uses a clever combination of CSS Animations, CSS Counters, and @property: Each digit gets its own CSS Animation with its own timing. Inside each animation the value of …