Hello There 👋, Welcome to my channel Code With Marish We will be having a very short video daily where I will answer one common question related to web development. If you wish to answer your question related to web development please drop a comment and I will definitely answer it either through comment or video.
This is our third daily quest, here I am answering a question on
How to update CSS variables using Javascript?
Below we have CSS variable and we will update this value to 20px
file: style.css
:root{
--width: 10px;
}
file: main.js
var root = document.querySelector(":root");
root.style.setProperty('--width', '20px');
Interested in reading blogs, please visit my blog at
https://codewithmarish.com/
Music: www.bensound.com / Royalty Free Music from Bensound
#codewithmarish #webdev #daily_quest #daily_quest_3
Auf dieser Seite können Sie das Online-Video Daily Quest #3 | Code With Marish 😎|How to update CSS variables using Javascript? mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Code With Marish 06 Februar 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 91 Mal angesehen und es wurde von 0 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!