Get the latest tech news

CSS @property and the new style


An exploration of the newly supported at-rule for explicitly defining and animating custom properties in CSS.

I experimented sparingly over time, reading articles that danced around the concepts, but I had barely scratched the surface of what@property could offer. Waves of sites across the web, especially the ones marketing services and software urging for you to "Upgrade your account" or "Sign up today," have discovered the look and latched on. In the CSS panel of the simple gradient spin demo, uncomment the.border-gradient ruleset to reveal the shiny animated border.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of css

css

Photo of new style

new style

Photo of CSS @property

CSS @property

Related news:

News photo

Can you convert a video to pure CSS?

News photo

Show HN: AI Tool Is Now Supporting React, Angular, CSS, Svelte, Vue

News photo

CSS adds vertical centering in 2024