Diorama

Toggle switches that are tiny worlds.

Eight toggle switches, each a small scene of our own that tells a story between off and on. One switch engine runs them all: a real role="switch" with Space and Enter, click, or drag the thumb 1:1 and flick or release past the middle; the thumb rides an overshooting spring and squashes with speed, and every scene draws itself from that same progress, so a half-dragged switch shows a half-finished scene. Night Town sets the sun into the moon while the windows light one by one and snow starts. Fish Tank fills with a rolling surface, bubbles stream and a fish swims out from behind the stone. Eclipse slides the moon over the sun until the corona opens. Sleepy Blob is a creature that wakes, stretches as it travels and blinks. Dot Matrix rewrites a moon into a turning sun with a wave of light across an LED board. Ink Drop spreads ink across paper in gooey blooms. Rain Cloud darkens and rains wherever you drag it, with rings on the puddle. Sprout grows a shoot, unfurls leaves and opens a flower in the pack colour. Works on light and dark pages, keyboard and screen reader ready, reduced motion, zero dependencies.

Type: Component packs. Price: $2. Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). Tags: toggle switch, animated toggle switch, dark mode toggle, creative switch, switch component, react toggle, css toggle, micro interaction.

What is inside (8 toggles)

Good for: Toggle switches.

More like this

More component packs