Рет қаралды 7,638
🎓 View our courses: scrimba.com/li...
In this video, we learn how to change a CSS variable using JavaScript.
CSS variables (aka custom properties) are a big win for front-end developers. They provide the power of variables to CSS, which results in less repetition, better readability and more flexibility.
Unlike variables from CSS preprocessors, CSS variables are a part of the DOM, which has many benefits.
💻 Check out the CSS variables course on Scrimba’s interactive learning platform: scrimba.com/le...
🌲 Linktree:
scrimba.com/li...