r/tailwindcss • • 3d ago

Built an interactive 2D Canvas "Neural Data Stream" & a zero-dependency "Cyber Pulse Badge" in pure React + Tailwind (no Framer Motion)

1 Upvotes

2 comments sorted by

1

u/dusanodalovic 3d ago

does the canvas loop stop when it scrolls out of view? the browser pauses animation frames in a hidden tab, but not when the canvas is just off screen, so on a long landing page it keeps eating a phone battery. an intersection observer that starts and stops the loop is cheap to add. also curious if the pulse badge checks prefers-reduced-motion