How To Switch From Light to Dark Mode (Background) || JavaScript, HTML, CSS
HTML-код
- Опубликовано: 1 окт 2024
- Hello! In this video, we are going to be using javascript to switch from light mode to dark mode. This includes changing the body's background and the button that will be used to implement the switch.
If you are new to this channel, please do subscribe for more informative videos and hit the like button if you liked this video! Also, go ahead and comment down below on what you think of this video + suggestions!
For those wondering, in the styles file, the class "dark-mode" just has the proeprties: "background-color: black; color: white" and light-mode has the same properties vice versa.
Keep flying girl. You are unstoppable. Proud of you!
I'm really grateful for you. I always find coding kinda difficult but you made me realize it is really great and fun.❤