Blueprint

Wireframe Build Animation for React

A finished layout that builds itself. It starts as a wireframe measured from your real markup, then fills in block by block: text streams in, photos come into focus, buttons pop up. Scrub back and it comes apart again.

  • Layout
  • Scroll
  • Motion

Uses motion, clsx, tailwind-merge

Open in ChatGPTOpen in Claude
play
annotatefalse
scrubberfalse
overlap0.50
<Blueprint />

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.

Blueprint: A finished layout that builds itself. It starts as a wireframe measured from your real markup, then fills in block by block: text streams in, photos come into focus, buttons pop up. Scrub back and it comes apart again.
This demo, Site Builder: An AI site builder's hero. A prompt types itself into the field, Enter goes down, and the field docks in the corner as the page builds beneath it. Each loop is a new prompt with different copy, colors and photos in the same layout, swapped in through `onLoop`, so the same wireframe turns into a different site. Hover to pause it.

1. Install it:
   npx shadcn@latest add @keyframeui/blueprint-demo
   (If the CLI can't find @keyframeui, use https://keyframeui.com/r/blueprint-demo.json instead.)
   It adds the demo, components/blueprint-demo.tsx, and the component, components/ui/blueprint.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 <Blueprint> on its own.

3. These props set its feel. Change them before you change the file:
   - play (default "auto"): `auto` rests on the wireframe, builds, holds the page, comes apart and starts over, pausing on hover and off screen. `scroll` builds as the section scrolls into view, finishing when it's centered. `manual` follows `progress`.
   - annotate (default false): Put a small spec label beside each block until it's built, read from its computed styles: "H1 · 56/60", "Image 16:9", "Button".
   - scrubber (default false): Show a scrubber under the stage, with a tick where each block starts. Drag or use the arrow keys to build and unbuild by hand; in `auto` mode the loop carries on from where you let go.
   - overlap (default 0.5): How much each block's build overlaps the one before, from `0` (one after another) toward `1` (all at once). At `0.5` the next block starts once the one before is halfway in.

4. Don't change, in components/ui/blueprint.tsx:
   - Every frame is a pure function of progress: painting reads only progress and the measured layout, so scrubbing back takes the page apart exactly.
   - Skeletons are measured from the real markup, which stays laid out underneath from the first frame; the page is only painted (opacity, filter, scale, clip-path, colors), never moved.
   - Progress is a motion value and painting writes inline styles, skipping unchanged ones, so a frame never re-renders React. A built block gets its own inline styles back.
   - Blocks build in reading order on overlapping slices, measured again when the page, its fonts or `overlap` change.
   - The auto loop pauses on hover, keyboard focus, a drag, off screen and in a background tab. Reduced motion crossfades each block in turn and rests auto mode on the finished page.
   Its timing is all in the TIMING block at the top of that file.

Docs: https://keyframeui.com/components/blueprint.md

Installation

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

The CLI writes components/ui/blueprint.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/blueprint

Examples

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

Studio Process

A case study that goes from an annotated blueprint to the finished design as you scroll, with `play="manual"` following `useScroll`. `data-blueprint-order` groups the build into type, imagery and surfaces, and `onBlockChange` lights up the matching stage in the rail. Scroll back up and it comes apart.

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

Blueprint: A finished layout that builds itself. It starts as a wireframe measured from your real markup, then fills in block by block: text streams in, photos come into focus, buttons pop up. Scrub back and it comes apart again.
This demo, Studio Process: A case study that goes from an annotated blueprint to the finished design as you scroll, with `play="manual"` following `useScroll`. `data-blueprint-order` groups the build into type, imagery and surfaces, and `onBlockChange` lights up the matching stage in the rail. Scroll back up and it comes apart.

1. Install it:
   npx shadcn@latest add @keyframeui/blueprint-process-demo
   (If the CLI can't find @keyframeui, use https://keyframeui.com/r/blueprint-process-demo.json instead.)
   It adds the demo, components/blueprint-process-demo.tsx, and the component, components/ui/blueprint.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 <Blueprint> on its own.

3. These props set its feel. Change them before you change the file:
   - play (default "auto"): `auto` rests on the wireframe, builds, holds the page, comes apart and starts over, pausing on hover and off screen. `scroll` builds as the section scrolls into view, finishing when it's centered. `manual` follows `progress`.
   - annotate (default false): Put a small spec label beside each block until it's built, read from its computed styles: "H1 · 56/60", "Image 16:9", "Button".
   - scrubber (default false): Show a scrubber under the stage, with a tick where each block starts. Drag or use the arrow keys to build and unbuild by hand; in `auto` mode the loop carries on from where you let go.
   - overlap (default 0.5): How much each block's build overlaps the one before, from `0` (one after another) toward `1` (all at once). At `0.5` the next block starts once the one before is halfway in.

4. Don't change, in components/ui/blueprint.tsx:
   - Every frame is a pure function of progress: painting reads only progress and the measured layout, so scrubbing back takes the page apart exactly.
   - Skeletons are measured from the real markup, which stays laid out underneath from the first frame; the page is only painted (opacity, filter, scale, clip-path, colors), never moved.
   - Progress is a motion value and painting writes inline styles, skipping unchanged ones, so a frame never re-renders React. A built block gets its own inline styles back.
   - Blocks build in reading order on overlapping slices, measured again when the page, its fonts or `overlap` change.
   - The auto loop pauses on hover, keyboard focus, a drag, off screen and in a background tab. Reduced motion crossfades each block in turn and rests auto mode on the finished page.
   Its timing is all in the TIMING block at the top of that file.

Docs: https://keyframeui.com/components/blueprint.md

Generated Dashboard

An analytics assistant answers with a dashboard card. KPIs count up through `data-blueprint-count`, chart bars grow from even placeholders into their real heights through `--blueprint-progress`, and table rows fill in cell by cell. Drag the scrubber to take it apart and put it back.

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

Blueprint: A finished layout that builds itself. It starts as a wireframe measured from your real markup, then fills in block by block: text streams in, photos come into focus, buttons pop up. Scrub back and it comes apart again.
This demo, Generated Dashboard: An analytics assistant answers with a dashboard card. KPIs count up through `data-blueprint-count`, chart bars grow from even placeholders into their real heights through `--blueprint-progress`, and table rows fill in cell by cell. Drag the scrubber to take it apart and put it back.

1. Install it:
   npx shadcn@latest add @keyframeui/blueprint-dashboard-demo
   (If the CLI can't find @keyframeui, use https://keyframeui.com/r/blueprint-dashboard-demo.json instead.)
   It adds the demo, components/blueprint-dashboard-demo.tsx, and the component, components/ui/blueprint.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 <Blueprint> on its own.

3. These props set its feel. Change them before you change the file:
   - play (default "auto"): `auto` rests on the wireframe, builds, holds the page, comes apart and starts over, pausing on hover and off screen. `scroll` builds as the section scrolls into view, finishing when it's centered. `manual` follows `progress`.
   - annotate (default false): Put a small spec label beside each block until it's built, read from its computed styles: "H1 · 56/60", "Image 16:9", "Button".
   - scrubber (default false): Show a scrubber under the stage, with a tick where each block starts. Drag or use the arrow keys to build and unbuild by hand; in `auto` mode the loop carries on from where you let go.
   - overlap (default 0.5): How much each block's build overlaps the one before, from `0` (one after another) toward `1` (all at once). At `0.5` the next block starts once the one before is halfway in.

4. Don't change, in components/ui/blueprint.tsx:
   - Every frame is a pure function of progress: painting reads only progress and the measured layout, so scrubbing back takes the page apart exactly.
   - Skeletons are measured from the real markup, which stays laid out underneath from the first frame; the page is only painted (opacity, filter, scale, clip-path, colors), never moved.
   - Progress is a motion value and painting writes inline styles, skipping unchanged ones, so a frame never re-renders React. A built block gets its own inline styles back.
   - Blocks build in reading order on overlapping slices, measured again when the page, its fonts or `overlap` change.
   - The auto loop pauses on hover, keyboard focus, a drag, off screen and in a background tab. Reduced motion crossfades each block in turn and rests auto mode on the finished page.
   Its timing is all in the TIMING block at the top of that file.

Docs: https://keyframeui.com/components/blueprint.md

Props

children Required

TypeReact.ReactNode

Your markup. Every element marked with data-blueprint becomes a block; unmarked content shows as it is from the start.

play

Type"auto" | "scroll" | "manual"Default"auto"

auto rests on the wireframe, builds, holds the page, comes apart and starts over, pausing on hover and off screen. scroll builds as the section scrolls into view, finishing when it's centered. manual follows progress.

progress

Typenumber | MotionValue<number>

Build progress in manual mode, from 0 (wireframe) to 1 (finished page). Pass a MotionValue, such as one from useScroll, to drive it without re-rendering.

onProgressChange

Type(progress: number) => void

Called whenever Blueprint moves the progress itself: the auto loop, scrolling, or the scrubber. In manual mode only the scrubber calls it, so feed the value back into progress.

duration

Typenumber | { build?: number; hold?: number; unbuild?: number; rest?: number }Default5

Seconds the build takes in auto mode, or each part of the loop: the build (5), the hold on the finished page (2.5), coming apart (1) and the rest on the wireframe (0.8).

onLoop

Type(loop: number) => void

Called as each auto loop starts on the wireframe, with the loop count (0 first). Use it to swap content between builds; the wireframe re-measures to match.

onBlockChange

Type(element: HTMLElement, state: "wireframe" | "building" | "built") => void

Called when a marked element starts building, finishes, or goes back to its wireframe. The same state is on the element as data-blueprint-state for styling.

annotate

TypebooleanDefaultfalse

Put a small spec label beside each block until it's built, read from its computed styles: "H1 · 56/60", "Image 16:9", "Button".

scrubber

TypebooleanDefaultfalse

Show a scrubber under the stage, with a tick where each block starts. Drag or use the arrow keys to build and unbuild by hand; in auto mode the loop carries on from where you let go.

overlap

TypenumberDefault0.5

How much each block's build overlaps the one before, from 0 (one after another) toward 1 (all at once). At 0.5 the next block starts once the one before is halfway in.

className

Typestring

Classes for the stage, the positioned box your markup and the skeletons share.

skeletonClassName

Typestring

Classes for the skeleton layer. Bars, boxes, outlines and labels are all drawn from its text color, so text-white turns the wireframe white on a dark or blue stage.

data-blueprint

Type"" | "text" | "image" | "button" | "box"

Attribute on your markup that makes an element a block. Left empty, the kind is guessed: images and video are image, buttons and filled links are button, elements with only inline text are text, anything else is a box. Only boxes can hold other blocks.

data-blueprint-order

TypenumberDefault0

Attribute that moves a block later in the build. Blocks build in order of this number, then in reading order, so 1 on every image builds all the text first.

data-blueprint-label

Typestring

Attribute that replaces a block's annotation. An empty value hides it.

data-blueprint-count

Typeboolean

Attribute for text blocks: numbers in it count up from zero as they stream in, keeping their format ("$4.82M", "18,240", "+12.4%").