771 Views
Ben Nadel showcases the style.setProperty() method in JavaScript. This allows you to update CSS styles; but, unlike mutating the style object directly, the .setProperty() method allows you to keep your CSS names consistent in both CSS and JavaScript.
0 comments