♥ LIKED!
Like itLoved! ♥
likes
click again to unlike ↺
One hidden checkbox, a <label> and a storm of @keyframes. No script. No libraries. Just CSS going absolutely feral.
Checking the box triggers :checked sibling selectors. Every particle, ring and confetti piece is just CSS transform + opacity animated with custom properties.
<!-- pure CSS, no JS --> <input type="checkbox" id="like"> <label for="like">♥</label> #like:checked ~ .heart { animation: heartPop .9s; } #like:checked ~ .particles { animation: burst 1s; }