« Previous Demo: Sticky Captions Concept Back to the Codrops Article

CSS Click Events Checkbox Hack

The Checkbox hack

Clicking on the label will check a hidden checkbox. Once checked, the elements with the .to-be-changed class will become red.

Re-clicking the label will uncheck the checkbox, restoring the default color of the .to-be-changed elements.


I’m going to be red! It’s gonna be legen... Wait for it...