From CSS variables to JavaScript and back
summary
Shows how to register CSS custom properties from JavaScript using the Houdini registerProperty API, with demos that make variables animatable and run on the compositor for frame-perfect performance. Presents working examples (color, border size, scroll-driven meters), compares a polyfill vs native behavior, and reports that native support (Chrome) moves animations off main thread so CPU drops and smoothness improves. Notes browser support gaps and a practical progressive-enhancement approach.
AI-written summary · about
chapters (9)
- 0:00Introduction to CSS bridge
- 2:02CSS custom properties basics
- 6:19Houdini and browser APIs
- 10:02Real-time CSS updates
- 19:02Houdini task force
- 25:41CSS object model
- 30:23JavaScript and CSS interaction
- 35:20Performance and compositing
- 40:39Future of CSS properties
related talks
53mCSS Houdini - from CSS variables to JavaScript and back
53mCSS Houdini - from CSS variables to JavaScript and back
46mGetting extra with CSS Houdini
27mMagic Tricks with Houdini
37mCSS Custom Properties
38mDemystifying CSS Custom Properties
48mHoudini - New Era of CSS
18mDemystifying CSS Custom Properties
