Exploded UI

3D Exploded View for React

A product screenshot that comes apart into its layers as you scroll, explains each one, then clicks back together. The layers are real HTML, so text stays sharp and follows your theme.

  • Scroll
  • 3D
  • Showcase

Uses motion, clsx, tailwind-merge

Open in ChatGPTOpen in Claude
walkthroughfalse
end
spread0.12
interactivetrue
lift0.35
stiffness120
damping30
<ExplodedUI />

The demo follows as you drag.

Take this demo to your coding agent.
Add this moment from KeyframeUI to our project and adapt it to our content.

Exploded UI: A product screenshot that comes apart into its layers as you scroll, explains each one, then clicks back together. The layers are real HTML, so text stays sharp and follows your theme.
This demo, Dashboard: A dashboard comes apart into its shell, sidebar, live cards, command menu and a teammate's cursor, walks through each one, then lands back as the screenshot it started as. Hover a layer once it's open, or click a label to jump to it.

1. Install it:
   npx shadcn@latest add @keyframeui/exploded-ui-demo
   (If the CLI can't find @keyframeui, use https://keyframeui.com/r/exploded-ui-demo.json instead.)
   It adds the demo, components/exploded-ui-demo.tsx, and the component, components/ui/exploded-ui.tsx.

2. Make it ours: our copy, data, images and colors. Keep the structure the motion depends on. If we only need the effect, use <ExplodedUI> on its own.

3. These props set its feel. Change them before you change the file:
   - walkthrough (default false): Once the stack is open, step through the labeled layers from the bottom up: the active one lifts a little further while the others fade back, and its label opens to show its description. Layers above it fade out to their outlines, so it's never covered. Click a label to scroll the walkthrough to it.
   - end (default "assembled"): `assembled` drops the layers back bottom first and lands the flat screenshot exactly where it started. `exploded` gives the walkthrough the rest of the scroll and leaves the stack open as the section scrolls away, for a "how it's built" section.
   - spread (default 0.12): The gap between neighboring layers once open, as a share of the plane's width, so it scales with the screenshot. Fewer layers can take more.
   - interactive (default true): While the stack is open, hovering a layer or its label (or focusing a label) lifts it like the walkthrough does, and moving the mouse turns the stack up to 4°. Without a walkthrough, clicking a label keeps its layer highlighted. Pointer tilt is mouse only.
   - lift (default 0.35): How much higher the active layer rises than the rest, in gaps between layers, as the walkthrough or a hover reaches it.
   - stiffness (default 120): Stiffness of the spring that smooths scrolling. Higher catches up with the scroll faster.
   - damping (default 30): Damping of the spring that smooths scrolling. Lower lets the stack overshoot and swing back.

4. Don't change, in components/ui/exploded-ui.tsx:
   - Every frame is one pose, read from the scroll spring and drawn in `frame.render` by writing transforms and opacity to the DOM; scrolling re-renders only when the walkthrough's layer changes.
   - Labels are placed from the same pose projected flat, so they stay on their layers and never skew or blur; flat and still, the rig's transform is `none`, so the screenshot stays pin-sharp.
   - Gaps open top first and close bottom first, each overlapping the next by `EXPLODE.overlap`, inside the scroll `BEATS`; scrolling up plays it backward.
   - Hover hit-tests the layers where they rest, without their lift, so a rising layer never slips out from under the pointer; layers above the active one fade to outlines so it's never covered.
   - Reduced motion, from a `useSyncExternalStore` flag that's false while hydrating, drops the sticky runway and shows the stack open and still.
   Its timing is all in the TIMING block at the top of that file.

Docs: https://keyframeui.com/components/exploded-ui.md

Installation

Add the component on its own with the CLI, or copy the file in by hand.

The CLI writes components/ui/exploded-ui.tsx and installs motion, clsx and tailwind-merge. It needs the @keyframeui registry in components.json; add it once per project.

npx shadcn@latest add @keyframeui/exploded-ui

Examples

Finished sections built with Exploded UI. Each one installs whole, with the component included.

Architecture

The layers don't have to be UI. Four plain planes, from your app down to the database, that stay open at the end. Each carries its name on its front edge, the strip that stays in view.

Take this demo to your coding agent.
Add this moment from KeyframeUI to our project and adapt it to our content.

Exploded UI: A product screenshot that comes apart into its layers as you scroll, explains each one, then clicks back together. The layers are real HTML, so text stays sharp and follows your theme.
This demo, Architecture: The layers don't have to be UI. Four plain planes, from your app down to the database, that stay open at the end. Each carries its name on its front edge, the strip that stays in view.

1. Install it:
   npx shadcn@latest add @keyframeui/exploded-ui-architecture-demo
   (If the CLI can't find @keyframeui, use https://keyframeui.com/r/exploded-ui-architecture-demo.json instead.)
   It adds the demo, components/exploded-ui-architecture-demo.tsx, and the component, components/ui/exploded-ui.tsx.

2. Make it ours: our copy, data, images and colors. Keep the structure the motion depends on. If we only need the effect, use <ExplodedUI> on its own.

3. These props set its feel. Change them before you change the file:
   - walkthrough (default false): Once the stack is open, step through the labeled layers from the bottom up: the active one lifts a little further while the others fade back, and its label opens to show its description. Layers above it fade out to their outlines, so it's never covered. Click a label to scroll the walkthrough to it.
   - end (default "assembled"): `assembled` drops the layers back bottom first and lands the flat screenshot exactly where it started. `exploded` gives the walkthrough the rest of the scroll and leaves the stack open as the section scrolls away, for a "how it's built" section.
   - spread (default 0.12): The gap between neighboring layers once open, as a share of the plane's width, so it scales with the screenshot. Fewer layers can take more.
   - interactive (default true): While the stack is open, hovering a layer or its label (or focusing a label) lifts it like the walkthrough does, and moving the mouse turns the stack up to 4°. Without a walkthrough, clicking a label keeps its layer highlighted. Pointer tilt is mouse only.
   - lift (default 0.35): How much higher the active layer rises than the rest, in gaps between layers, as the walkthrough or a hover reaches it.
   - stiffness (default 120): Stiffness of the spring that smooths scrolling. Higher catches up with the scroll faster.
   - damping (default 30): Damping of the spring that smooths scrolling. Lower lets the stack overshoot and swing back.

4. Don't change, in components/ui/exploded-ui.tsx:
   - Every frame is one pose, read from the scroll spring and drawn in `frame.render` by writing transforms and opacity to the DOM; scrolling re-renders only when the walkthrough's layer changes.
   - Labels are placed from the same pose projected flat, so they stay on their layers and never skew or blur; flat and still, the rig's transform is `none`, so the screenshot stays pin-sharp.
   - Gaps open top first and close bottom first, each overlapping the next by `EXPLODE.overlap`, inside the scroll `BEATS`; scrolling up plays it backward.
   - Hover hit-tests the layers where they rest, without their lift, so a rising layer never slips out from under the pointer; layers above the active one fade to outlines so it's never covered.
   - Reduced motion, from a `useSyncExternalStore` flag that's false while hydrating, drops the sticky runway and shows the stack open and still.
   Its timing is all in the TIMING block at the top of that file.

Docs: https://keyframeui.com/components/exploded-ui.md

Design System

A page lifts off the components it's built from, which lift off the tokens under them. Numbered labels, with the active layer's description under the stack.

Take this demo to your coding agent.
Add this moment from KeyframeUI to our project and adapt it to our content.

Exploded UI: A product screenshot that comes apart into its layers as you scroll, explains each one, then clicks back together. The layers are real HTML, so text stays sharp and follows your theme.
This demo, Design System: A page lifts off the components it's built from, which lift off the tokens under them. Numbered labels, with the active layer's description under the stack.

1. Install it:
   npx shadcn@latest add @keyframeui/exploded-ui-design-system-demo
   (If the CLI can't find @keyframeui, use https://keyframeui.com/r/exploded-ui-design-system-demo.json instead.)
   It adds the demo, components/exploded-ui-design-system-demo.tsx, and the component, components/ui/exploded-ui.tsx.

2. Make it ours: our copy, data, images and colors. Keep the structure the motion depends on. If we only need the effect, use <ExplodedUI> on its own.

3. These props set its feel. Change them before you change the file:
   - walkthrough (default false): Once the stack is open, step through the labeled layers from the bottom up: the active one lifts a little further while the others fade back, and its label opens to show its description. Layers above it fade out to their outlines, so it's never covered. Click a label to scroll the walkthrough to it.
   - end (default "assembled"): `assembled` drops the layers back bottom first and lands the flat screenshot exactly where it started. `exploded` gives the walkthrough the rest of the scroll and leaves the stack open as the section scrolls away, for a "how it's built" section.
   - spread (default 0.12): The gap between neighboring layers once open, as a share of the plane's width, so it scales with the screenshot. Fewer layers can take more.
   - interactive (default true): While the stack is open, hovering a layer or its label (or focusing a label) lifts it like the walkthrough does, and moving the mouse turns the stack up to 4°. Without a walkthrough, clicking a label keeps its layer highlighted. Pointer tilt is mouse only.
   - lift (default 0.35): How much higher the active layer rises than the rest, in gaps between layers, as the walkthrough or a hover reaches it.
   - stiffness (default 120): Stiffness of the spring that smooths scrolling. Higher catches up with the scroll faster.
   - damping (default 30): Damping of the spring that smooths scrolling. Lower lets the stack overshoot and swing back.

4. Don't change, in components/ui/exploded-ui.tsx:
   - Every frame is one pose, read from the scroll spring and drawn in `frame.render` by writing transforms and opacity to the DOM; scrolling re-renders only when the walkthrough's layer changes.
   - Labels are placed from the same pose projected flat, so they stay on their layers and never skew or blur; flat and still, the rig's transform is `none`, so the screenshot stays pin-sharp.
   - Gaps open top first and close bottom first, each overlapping the next by `EXPLODE.overlap`, inside the scroll `BEATS`; scrolling up plays it backward.
   - Hover hit-tests the layers where they rest, without their lift, so a rising layer never slips out from under the pointer; layers above the active one fade to outlines so it's never covered.
   - Reduced motion, from a `useSyncExternalStore` flag that's false while hydrating, drops the sticky runway and shows the stack open and still.
   Its timing is all in the TIMING block at the top of that file.

Docs: https://keyframeui.com/components/exploded-ui.md

Props

children Required

TypeReact.ReactNode

The layers, as ExplodedUI.Layers. The first child is the bottom of the stack and each one after sits on top. In a Server Component, import and use ExplodedUILayer instead: the dot doesn't reach across to client components.

walkthrough

TypebooleanDefaultfalse

Once the stack is open, step through the labeled layers from the bottom up: the active one lifts a little further while the others fade back, and its label opens to show its description. Layers above it fade out to their outlines, so it's never covered. Click a label to scroll the walkthrough to it.

end

Type"assembled" | "exploded"Default"assembled"

assembled drops the layers back bottom first and lands the flat screenshot exactly where it started. exploded gives the walkthrough the rest of the scroll and leaves the stack open as the section scrolls away, for a "how it's built" section.

labels

Type"side" | "numbered" | falseDefault"side"

side puts the labels in a column beside the stack with dotted leaders to their layers. numbered pins a number on each layer's front edge and lists the names under the stack. Side labels become numbered on stages narrower than 640px.

tilt

Type{ back?: number; turn?: number }Default{ back: 50, turn: -30 }

The viewing angle once tilted, in degrees: the plane turns on the page by turn, then leans away by back. Narrow stages get 80% of it.

spread

TypenumberDefault0.12

The gap between neighboring layers once open, as a share of the plane's width, so it scales with the screenshot. Fewer layers can take more.

scrollLength

TypenumberDefault3, or 4 with walkthrough

How long the section stays stuck, in stage heights. The tilt, the explode and the return each take a fixed share of it; the walkthrough splits its share evenly between the layers.

interactive

TypebooleanDefaulttrue

While the stack is open, hovering a layer or its label (or focusing a label) lifts it like the walkthrough does, and moving the mouse turns the stack up to 4°. Without a walkthrough, clicking a label keeps its layer highlighted. Pointer tilt is mouse only.

lift

TypenumberDefault0.35

How much higher the active layer rises than the rest, in gaps between layers, as the walkthrough or a hover reaches it.

stiffness

TypenumberDefault120

Stiffness of the spring that smooths scrolling. Higher catches up with the scroll faster.

damping

TypenumberDefault30

Damping of the spring that smooths scrolling. Lower lets the stack overshoot and swing back.

onLayerChange

Type(index: number | null) => void

Called with a layer's index, counted from the bottom, as the walkthrough reaches it, and with null as the walkthrough leaves the layers.

containerRef

TypeReact.RefObject<HTMLElement | null>

Scroll container to track. Defaults to the window. The container must be positioned (e.g. relative).

stageClassName

TypestringDefault"h-dvh"

Classes for the stage that sticks while the section scrolls. Set its height and background here. The labels are drawn on it, outside the plane.

className

TypestringDefault"aspect-[16/10] w-full max-w-5xl"

Classes for the plane: the screenshot's box. Size it here. It's a container, so layer content can size itself in cqw units and scale like an image. Other props pass through to the outer section.

Layer.label

TypeReact.ReactNode

The layer's name, shown once it lifts off. Layers without one aren't labeled or visited by the walkthrough.

Layer.description

TypeReact.ReactNode

One line about the layer, shown under its label while it's active.

Layer.className

TypestringDefault"inset-0"

Places and sizes the layer on the plane, like left-0 top-0 h-full w-[22%]. Without any position or size, it fills the plane. Each layer is a sheet with slightly rounded corners that clips its content; its edge and the light along its top fade in as it lifts off.

Layer.bare

TypebooleanDefaultfalse

Drops the sheet: no clipping, no edge, and no shadow cast or received. For pieces that float on their own, like a cursor.