Syntax - Tasty Web Development Treats cover image

What's New in CSS? Variables, Scoping, New Selectors and Color Functions

Syntax - Tasty Web Development Treats

00:00

CSS Variables: A Pain Point for JavaScript Programmers

CSS variable solves for me what I like to call independent transforms, meaning that currently in the browser, if you want to translate X something and rotate Y something, you have to pass those in just one single transform property. And then when you hover over top of it or you add a different class, you don't have to reapply any sort of transform. So there's no reapplying any extra property values in your selector. The only thing that will happen in your selector on hover is updating the variable and everything will take care of from there. Do you want me to talk about the next one? Is transforms, yeah, I'm not sure what you're, yeah.

Play episode from 14:51
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app