JS in CSS
summary
Claims that running JavaScript-like logic inside CSS is possible by abusing CSS custom properties and string values, and demonstrates a working random color generator that changes on tap. Shows a hack that builds image paths via dynamic URL concatenation from variables and injects them as background images. Uses only vanilla CSS variable syntax and concatenation tricks, yields live-changing visuals that work but reads as brittle and exploratory rather than production-ready.
AI-written summary · about
chapters (3)
related talks
27mCSS Variables A New Hope
53mCSS Houdini - from CSS variables to JavaScript and back
31mGenerative Art with CSS
27mBringing Back the 1990s: The Revenge of JavaScript Style Sheets
50mThe future of CSS isn’t CSS
40mBringing back the 1990s: The revenge of JavaScript Style Sheets
46m3.14 things I didn’t know about CSS
31mUnique Value Proposition of CSSinJS and the Future
