demo-page
Skill11 starsChanged 7 days agoMITView on GitHub
Build a live, animatable front-end page from a Diorama screen design — real interactions with transitions.dev snippets, a scripted looping walkthrough, per-component snippets, light/dark modes and composition framing — ready to be captured as video or stills. Use when asked to turn a Paper design into an interactive demo, animate a UI for a screen recording, add motion to a mock, or prepare a page for rendering. Part of motion-media.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- YiftachCohen/skillstheir own version, first seen Nov 8, 2026
- handsontable/handsontabletheir own version, first seen Oct 8, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- handsontable/handsontable★ 22ksame name
- YiftachCohen/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-componentSkill
- app-motionSkill
- craftSkill
- create-skillSkill
- design-componentSkill
- effectsSkill
- motion-componentSkill
- motion-mediaSkill
- review-uiSkill
- static-renderingSkill
- stills-renderSkill
- video-renderSkill
- visual-reviewSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
No connector? See § Reading Paper.
- Distinctive: line 29
Add the scripted layer: walkthrough, snippets, compositions.
- Distinctive: line 30
Add render hooks, then smoke-test every interaction in Playwright.
- Distinctive: line 86
Use them verbatim where they fit (card resize, number pop-in, icon swap, avatar hover, tooltip, text reveal, accordion, toast, thinking …
- Distinctive: line 193
Use one measured, stationary dot lattice.
- Distinctive: line 206
Every interaction must show a useful cause and consequence: press → busy → completion, or changing data → matching chart.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
UI demo page
One self-contained HTML file that is both a usable prototype and a deterministic performance. Two references sit beside this file:
reference/daylight-demo.html: a complete page (the Daylight screen, light and dark), synced to Paper5F5-0on 2026-10-19. The sync is one commented CSS layer at the end of the style. Open it with#demoor#demo-lightto watch the walkthrough. Renderers load it viaPAGE=.reference/banner-evolution.html: a non-interactive iteration film. Frames build one by one under a camera that moves over a fixed ground, carried-over elements fly between frames, and the camera pulls back to the artboard. Start here when the subject is how a design changed, not how it is used.
Build order
- Read the design from Paper, not from a screenshot —
get_computed_stylesfor padding, gaps, radii, frame background. The artboard is the contract. No connector? See § Reading Paper. Starting from a reference page? Diff it first (§ Syncing to a newer design). - Build the static screen with the design system's tokens and real
griddy-iconsglyphs (inject path data at build time; never redraw). - Wire real interactions with transitions.dev snippets.
- Add the scripted layer: walkthrough, snippets, compositions.
- Add render hooks, then smoke-test every interaction in Playwright.
Reading Paper without the connector
Paper draws its canvas as HTML, so a browser on the file can read the same
numbers get_computed_styles would. Signed out is enough to read.
- Each node is an element with
data-node-id, styled inline withvar(--x-ui-*). The variables are defined per node, not on the artboard, so resolve each one throughgetComputedStyle(node).getPropertyValue(v)on that node. - Off-screen artboards are culled and come back empty. Navigate to the node's
URL (
…/p-2-0/<id>) and wait before reading. - Shader layers (
data-paper-shader) are WebGL canvases with no CSS.drawImageone into a 2D canvas and sample it: pitch, dot profile, ink, grid phase, and whether it fades. The Full View dot ground had a 16 px pitch, inkrgb(13 13 13 / .078)in both schemes, dots at x ≡ 8, y ≡ 0, and no fade. None of that matched the reference page's dots. - Paper's text boxes are tight. A page's padded container measures larger by its padding, so compare weight, size and colour exactly and position within ±2 px.
Syncing to a newer design
A reference page is a snapshot of an older revision. Before rendering from it:
- Extract every Paper node as
id, x, y, w, h | bg | radius | shadow | border | type | «text», and the same rows from the page rendered at 1:1. - Match texts by content and surfaces by rect, then list what differs. The Daylight diff found dropped dark shadows, a new screen paint, 450-weight meta text, a thread 39 px too low and a split placeholder. Each is easy to miss by eye, and they add up.
- Fix it as one CSS layer appended last, with markup changes only where the structure changed, so the diff against the reference reads as a list of decisions.
- Re-run the diff until only measurement artefacts remain. Then update the snippet ground and the composition ground to the new screen paint (§ Seamless ground).
transitions.dev snippets
Source: the transitions.dev skills by Jakub Antalik,
https://github.com/Jakubantalik/transitions.dev/tree/main/skills. Install with
npx skills add Jakubantalik/transitions.dev and load the one the task needs:
| Skill | Use it for |
transitions-dev | the t-* CSS transitions and their motion tokens: card resize, number pop-in, text and icon swaps, avatar hover, tooltip, text reveal, accordion, toast, checkbox, thinking states, streaming text and more |
transitions-polish | tuning motion that already exists against the token scale (duration, distance, scale, blur, easing), plus open/close and hover in/out asymmetry, stagger and delay |
transitions-ui-generation | an "agent is generating this" reveal: a dotted wireframe measured from the element, then the real UI behind a scan line |
Attribution and terms. © 2026 Jakub Antalik / Transitions.dev, under the
Transitions.dev License (licenses/transitions-dev.LICENSE.txt; full terms
at https://transitions.dev/terms.html). It is not MIT. You may use, copy and
modify the transitions in our own products, demos and media. You may not
republish the collection, or a substantial part of it, as a transitions
library, motion pack or animation kit. The reference pages carry the snippets
they use inline, marked transitions.dev, as part of a demo. Keep them that
way, and keep the credit in CREDITS.md.
Use them verbatim where they fit (card resize, number pop-in, icon swap,
avatar hover, tooltip, text reveal, accordion, toast, thinking state,
streaming text, text morph, assistant input). Adapt only where the design
system disagrees — the checkbox reveals the real Check glyph with a
clip-path instead of the snippet's own tick.
Each snippet owns transition (and often display) on its element. Two
snippets on one element overwrite each other and one silently stops
animating. Give each its own wrapper (sugg-slot, asst-layer), and restore
display with a two-class selector where a snippet sets it.
The scripted layer — the API the renderers call
window.runDemo() // full walkthrough; must END in the start state
window.runSnippet(name) // one component's beat; ends in the start state
window.snippetRect(name, pad) // focus rect in viewport px → the renderer's crop
window.runComposition(orient) // "landscape" | "portrait"
window.showIntroInstant() // skip the entrance so snippets start composedSnippets are declared as { box, extend?, extendY?, grow?, growTop?, padX?, run }.
box is the focus element; extendY unions only vertically — that is how the
suggestion snippet reaches its toast without widening past 60%.
Every run must return to its first frame. Revert what it did (untick,
fold, setSugg("pending"), close the toast), move the cursor back to its
park point just outside the crop, and fade it out. That is the whole loop
seam — the renderer only verifies it.
Render hooks
| Hook | Effect |
#demo / #demo-light | render mode: no chrome, padded stage, optional light |
window.__RENDER | skip anything nondeterministic |
window.__STAGE_SCALE | draw the 1512×982 stage at k× (the screencast captures CSS px only) |
window.__PAD | stage padding in px (already × scale) |
window.__LIGHT | light theme |
window.__COMPOSE = {x, y, k} | composition mode: dotted ground, screen at x,y |
Seamless ground
In snippet mode the page background is the frame's background, extended:
html[data-mode="light"].is-demo:not(.is-compose) {
background: linear-gradient(in oklab 180deg,
#FDFCFB var(--demo-pad), #F6F3F0 calc(100% - var(--demo-pad)));
}
html.is-demo:not(.is-compose) .app { background: transparent; }The stops sit exactly at the frame's top and bottom, so ground and frame agree at every height. Verify by sampling pixels just inside and outside the frame edge — they must match.
Compositions
Dotted ground (radial-gradient dots, gap and radius × k), the screen
bleeding off the frame, and the vignette as a ::after layer between the
dots and the screen. The screen is never under it.
html.is-compose .page::after { content: ""; position: fixed; inset: 0;
background: radial-gradient(ellipse 75% 75% at 50% 45%, transparent 55%, var(--vig-ink) 100%); }
/* dark: rgba(0,0,0,.42) · light: rgba(120,110,100,.16) */Composition mode needs html, body, .page { height: 100% } and the gradient
on html. Without them the stage-wrap had no box: the light composition showed
only dots and the dark one was solid black.
Full View (Paper's Article Asset Full View drafts) is the whole screen at
1:1 on a 1600×1200 artboard: __COMPOSE = { x: 44, y: 109, k }, with no bleed,
.page::after { display: none } (no vignette) and no .app border. The screen's
own paint and radius separate it from the ground. The cursor's park point
(stage 1560, 1040) falls just off the artboard's right edge, so it still enters
and leaves unseen.
Traps
| Trap | Rule |
| Moving this skill, or its reference pages, to the product tier | That would install the transitions.dev snippets into other people's repositories. That is distribution, not use in our own product, so read the Transitions.dev terms first. The same goes for pulling the snippets out into a shared motion file or package |
| An accordion nested inside an accordion | The accordion snippet opens its panel with .t-acc[data-open="true"] .t-acc-panel — a DESCENDANT selector, so an open outer root matches every inner panel and they all open at once. Never nest .t-acc; for rows entering and leaving a list, use a separate presence wrapper with its own class (a grid-rows fold keyed on data-leaving) |
| A digit swap that leaves the old digit behind | A number animation that injects old + new digit spans leaves the outgoing digit in the DOM text after it finishes: the count reads "1 2 1" to copy-paste, find-in-page, screen readers and tests. When it settles (a timer reading the snippet's duration variable), drop the spans and restore plain textContent; keep the value in aria-label |
| A 0.5px border on a fixed-height row | CSS adds the border to the box — a 124px row became 125–126px — while Figma draws an inside stroke within it (check the stroke's alignment in whatever tool drew it). Draw the hairline as an inset outline (negative outline-offset) or an inset box-shadow so the row keeps the design's height |
| Tooltips cropped inside a scrolling column | Flip them below (.t-tt--below) where the top would clip |
| The native caret in a slowed render | It blinks in real time, so at ×8 slow-down it flickers. caret-color: transparent in demo mode plus a drawn caret |
| Overflowing typed text | Scroll the field with the text and fade the left edge; a static line reads broken |
| A canned assistant reply | Match keywords (includes("skip")), or the typed question gets the fallback answer |
| A removed item vanishing | Show the state change first (tick the checkbox), then fold it away |
color-mix of two tokens in Paper | Collapses; only color-mix(var(--x) N%, transparent) survives |
| A glow or halo that ends in a hard rectangle | A blurred layer that spreads past a scroll container (overflow: auto clips both axes) is cut flat. Walk the ancestors for overflow/contain and measure the room — the chat pill had 4px to its left. Paint the glow INSIDE the element's own box with radial gradients that fade to transparent; then nothing can clip it and no filter is needed |
An effect class that sets position: relative | It silently overrides an absolutely positioned host — the generated event dropped out of its 11:30 slot into the grid's flow and was invisible until the class came off. Scope it: .gen-host:not(.ev) |
| A measured width written back as CSS | The renderer scales the stage (__STAGE_SCALE = 2), so getBoundingClientRect() returns twice the layout size. A text morph that set width from it doubled its box in every rendered video — the label and note ran out of the banner — while the browser at 1× looked fine. Use offsetWidth/offsetHeight for anything written back to styles, or divide by the stage scale; probe overflow AT the render scale |
| A row that grows to the wrong height | scrollHeight counts the overflow of absolutely positioned children — the generating layer's blurred blobs reach far below the row, so it grew to almost twice its height. Measure with decorative layers hidden, then restore them; check the height every frame, not at rest |
| A figure that does not follow the data | The hero's "to yourself" was a literal per state, so a task added from the chat left it untouched. Derive every summary figure from state (updateHero()), and call it from every flow that changes the day |
| A halo or wash under text | Measure the ink against the effect's STRONGEST stop, not the plain surface: --ink-muted was 8.2:1 on the pill and 4.02:1 on the halo peak. Cap the stop alpha to keep ≥ 4.5:1 |
Resetting by cancelling document.getAnimations() | With the CDP Animation domain on (the renderer needs it for ×8), Chromium dropped finished, filled, unreferenced WAAPI animations from the list (127 → 6) while their effects stayed applied. The reset missed them, and the loop ended on the overview (seam 5.08). Keep your own registry of every Animation and cancel that |
A requestAnimationFrame tween | It runs at real speed against ×8-slowed CSS and timers. Drive motion with CSS/WAAPI, or divide the tween's clock by __SLOW (the reference's clock()) |
| A shared-element flight with an even crossfade | It reads as a double exposure: "Three things" and "You have" legible on top of each other. The ghost fades 12–45 % (blur 3 px), the arrival resolves 40–80 %, and the source frame washes out at once, so the lifting copy reads against a dimmed original |
| Feedback appended after the last scroll | The reply's In your calendar at 11:30 was appended below the thread's fold and never showed. Scroll after appending feedback, and check on the contact sheet that it is inside the focus box |
Procedural component reveals
Use one measured, stationary dot lattice. Connect anchors to the actual component bounds; do not add a second dot layer, falling particles or a screen-wide shimmer. Give each component a local trace, paint and settle beat. Text uses filled skeleton slots with the glyphs hidden until the slots retire. Trace opacity stays subordinate to final ink. Animate square-to-final corners when requested; nested clips use the current outer radius minus the inset.
For a generation widget, keep the code stream moving through its fade. A freeze followed by dismissal introduces an unintended pause. Increase code volume by advancing or virtualizing rows, not by shrinking approved type. Scope any shimmer to the generating indicator. Validate changing content at two points within the fade, fixed font size, and final opacity zero.
Every interaction must show a useful cause and consequence: press → busy → completion, or changing data → matching chart. Busy retains focus and blocks repeat activation; use the current component contract when old sheet copy contradicts it. A short film should demonstrate a few legible behaviors, not compress the whole component catalogue into a tour.
Expose seek(seconds), duration and a ready promise for deterministic
capture. Seek must restore all state in either direction, including digits,
scroll, focus, code position, corner radii and cursor. Honor reduced motion.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

