slowly change css js code example
Example 1: how to change css with js
document.querySelector('h1', container).style.backgroundColor = 'red';
Example 2: javascript change css
document.getElementById(id).style.property = new style
document.querySelector('h1', container).style.backgroundColor = 'red';
document.getElementById(id).style.property = new style