StealThis .dev

DIY — Exploded View Animation

Scroll-driven exploded view of a fictional 68-key mechanical keyboard, drawn as five stacked SVG layers on a blueprint grid. A sticky viewport pulls keycaps, switches, plate, PCB and case apart as you scroll, fading in mono callouts with leader lines while a progress rail tracks explode percent. Clickable labels open spec cards with material, part count and a fun fact; Explode and Assemble buttons plus a scrub slider drive the sequence, with a reduced-motion fallback.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Exploded View Animation

A teardown sheet for the fictional Foundry FR-68 keyboard, rendered as a scroll-driven exploded diagram. A tall stage with a position: sticky viewport keeps the blueprint in frame while five SVG layers — keycaps, switches, plate, PCB and case — translate apart with a small per-layer stagger and cubic easing. As each layer separates, its callout (dashed leader line plus a mono label chip) fades in, and a vertical progress rail on the right reports the explode percentage in real time.

Everything on the sheet is interactive. The sidebar lists the five layers with part numbers and highlights whichever one is currently separating; clicking a list item or an SVG callout opens a spec card showing the material, a mono part count and a workshop fun fact. The safety-orange Explode and Assemble buttons animate the whole sequence by smoothly driving the scroll position, so the diagram, rail and slider stay perfectly in sync, while the range slider scrubs the teardown manually to any frame.

When prefers-reduced-motion is set, the sticky scroll stage collapses to a static page: the scroll binding is skipped entirely and the slider and buttons update the diagram directly with no animation. Layers and callouts are keyboard-focusable buttons, status text is announced via aria-live, and a small toast helper confirms each action in workshop voice.

Illustrative UI only — always follow real safety guidance when working with tools, electronics, or repairs.