DEV Community

Discussion on: How to toggle Dark/Light Mode using JavaScript

Collapse
 
robson91 profile image
Robert Grembowicz

Currently you don't need prefix for css transition and transform. All browsers support this :). In js file both functions to toggle, could be write in one funcion with parameter to change like: toggle('dark')