Answers for "hov to use variable from js in css"

2

js set css variable

document.documentElement.style.setProperty("--main-background-color", "green");
Posted by: Guest on January-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language