loading code fetching the highlighted snippet
Press and hold the heart to spawn a stream of bursting hearts and circles. Each particle animates x / y / opacity with its own timing — many small motion components composed for one rich gesture.
likeInteraction) so the gesture surface stays accessible — pointerdown starts spawning, pointerup / pointercancel stop it, and Enter / Space mirror the same toggle for keyboard
users.$state arrays. Every motion entry animates from the button's centre to
a random offset, then drops out of the array via a setTimeout cleanup once its animation has settled.transition prop accepts per-key objects — independent timings for x, y, and opacity let the particles drift sideways
quickly, rise more slowly, and fade out last for the layered feel.