All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Prop For That: A New Tool That Exposes Browser-State Data as Live CSS Custom Properties

By

@geoffreygraham

19d ago· 2 min readenNews

Summary

Adam Argyle, creator of Open Props, introduces "Prop For That" — a new tool that generates live CSS custom properties (props) for things the browser can't natively detect, such as cursor position, scroll velocity, current time, form states, and progress values. The tool handles the JavaScript logic behind the scenes so developers can use these dynamic values directly in CSS.

Source

CSS-TricksProp For That: A New Tool That Exposes Browser-State Data as Live CSS Custom Propertiescss-tricks.com

Key quotes

· 5 pulled
No secret that Adam's all about props.
Dude gave us Open Props a good while back for a slew of preconfigured variables for color, shadows, sizing, typography, among much much more.
Now he's back with Prop For That, a similar sorta idea, but mind-blowing in the sense that it creates live props based things CSS can't normally see in the browser.
Things like cursor position, progress values, certain form states, current time, scroll velocity — you know, the stuff that JavaScript sniffs and passes to CSS.
My understanding is that all the script-y stuff is already in the
Snippet from the RSS feed
Props for That creates live props based things CSS can't normally see in the browser. Things like cursor position, progress values, certain form states, current time, scroll velocity.

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.