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.
Prop For That originally handwritten and published with love on CSS-Tricks. You should really get the newsletter as well.
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 background. All that’s needed is to import the library, declare it in HTML, then style away in CSS.
Like, here’s Chris a long while back with custom properties registered in JavaScript to track cursor position:
Prop For That has that nicely covered. The difference is that we’re working with data attributes that trigger the scripts:
<div class="mover" data-props-for="pointer">...</div>
And plop the relevant props into the styles:
.mover {
aspect-ratio: 1;
width: 50px;
background: red;
position: absolute;
left: calc(var(--live-pointer-x, 0) * 1px);
top: calc(var(--live-pointer-y, 0) * 1px);
}
The demos are where it’s at. Good lord, can Adam put together some classy work.
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Scroll-Driven, Scroll-Triggered, Scroll States, and View Transitions | 0 | 13.31 | 08-06-2026 |
| 2 | There’s no need to include ‘navigation’ in your navigation labels | 0 | 9.66 | 12-06-2026 |
| 3 | Основы вёрстки для дизайнера. Часть 3. CSS — стили как в макетах | 0 | 8.36 | 21-07-2026 |
| 4 | Пожалуйста, используйте эти CSS медиа-фукции | 5 | 7 | 07-07-2026 |
| 5 | How to Diagnose Production Bugs When You Can't Reproduce Them Locally | 0 | 7.66 | 24-07-2026 |
| 6 | Виртуализация адаптивной Grid разметки | 0 | 7 | 02-07-2026 |
| 7 | Popsa-Studie „The Memory Economy“: Das Foto-Paradoxon | 0 | 18.84 | 23-06-2026 |
| 8 | Feli & Pepita in Hildesheim: Waiting for Something | 0 | 15.21 | 25-06-2026 |
| 9 | The New Agency Stack: How Dev Shops Use Claude, Cursor, and Copilot in Production | 0 | 8.46 | 24-07-2026 |
| 10 | Jogarfortune started the topic in the forum Installing BuddyPress | 0 | 0 | 27-11-2025 |