Get a CSS Variable with JavaScript

Published: 19 May 2020
on channel: PrintCSS
86
1

Hi 👋

In this short video, I show you how to get a CSS Variable with JavaScript!

We will change the text color via a color input field and get the new text color with the click on a button logged to the console.

The first video shows you how to change a CSS Variable with JavaScript
   • Change a CSS Variable with Javascript  

The original video I recorded on Scrimba and you can find it here:
https://scrimba.com/c/caZk2yf9
The nice thing there is, you can pause and change the code yourself to see more clearly how everything works!


On this page of the site you can watch the video online Get a CSS Variable with JavaScript with a duration of hours minute second in good quality, which was uploaded by the user PrintCSS 19 May 2020, share the link with friends and acquaintances, this video has already been watched 86 times on youtube and it was liked by 1 viewers. Enjoy your viewing!