Component packs › Switchyard › Key Turn

Key Turn

A solid key stands out of the rose; drag it round and each face is shaded by one light as it turns, its shadow swinging with it.

Key Turn is a toggle from Switchyard, a component pack with 8 toggle switches: Toggle switches that work like the real hardware: rockers, bolts, breakers, keys and levers. Price: $2 for the whole pack.

Built with: CSS 3D solid key, per-angle lighting, drag to turn.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

More in Switchyard

Good for: Skeuomorphic UI.