Using style.setProperty() To Keep CSS Property Names Consistent In JavaScript

added by JavaScript Kicks
8/11/2018 10:50:32 AM

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