You actually don't need an off class. That can just be part of the bulb class. Then all you need to do is toggle the on class. Here's a fork of your codepen with the changes. I also, for fun, change the switch text based on the status.
If something isn't clear let me know and I can clarify.
Also, if you want to embed a codepen you can do the following for example:
At my 30s I found out that there was a developer inside a Political Science Graduated.
I've been COO an CMO for 4 years but I decided to persue my dream and become a Front-end developer:)
Location
Elche, Alicante, Spain
Education
Certificate of Higher Education for Web Applications Development & Degree in Political Science
You actually don't need an
offclass. That can just be part of thebulbclass. Then all you need to do is toggle theonclass. Here's a fork of your codepen with the changes. I also, for fun, change the switch text based on the status.If something isn't clear let me know and I can clarify.
Also, if you want to embed a codepen you can do the following for example:
{%codepen https://codepen.io/nickytonline/pen/OeLVqg %}Absolutely right. Thanks for your help and advice :)