jakubantalik/transitions.dev/transitions-ui-generation

Claude Code and agent skill by jakubantalik/transitions.dev

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Make any UI, headline or image appear as if an AI agent is generating it. Five variants: ui (the default: a dotted wireframe drawn from the element's own structure, outline, boxes, text lines, icon paths, with guides, corner handles and size labels, then the real UI revealed behind a scan line), text (every glyph of a headline traced along its real outline in flowing dots, then fading in one by one), small text (a dotted line through each line of text), image (a frame, a sketch of the photo's tones, a halftone of its own pixels, colour dots, then the photo) and auto (text by size and images in one block). Two modes, skeleton and skeleton + generation texts (an agent log, the motion CSS being written, and a step line). One dependency-free runtime that works with any framework (vanilla, React, Next.js, Vue, Svelte). Use when the user asks for a "generation animation", "AI generating the UI", "agent building the component", "build-in animation", "wireframe to UI reveal", "skeleton generation", "dotted wireframe", "matrix dots", "make it look generated", "futuristic reveal", "generative UI loading", "headline generation animation", "letters drawn in dots", "glyph outline reveal", "image generation reveal", "halftone image reveal", or for an AI product that should show its output being built. Also the commands transitions generate, transitions generate texts and transitions generate preview.

Install

npx vskill@latest install jakubantalik/transitions.dev/transitions-ui-generation

SKILL.md

The same SKILL.md was published earlier as jakubantalik/transitions.dev/transitions-ui-generation.

Transitions UI generation

Plays an "agent is generating this" animation over any element on the page, then hands over to the real UI. Nothing is faked: the drawing is measured from the element itself, so the dotted outline, text lines and icons land exactly where the real ones appear. Headlines are traced along their real glyph outlines, and images are drawn from their own pixels.

Variants

VariantWhat it generatesUse forReference
`ui` (default)The component's dotted wireframe: dot field, guides, outline, every box, text line and icon, then the real UI behind a scan line.Cards, panels, components an agent produced.01-skeleton.md
`text`Every glyph traced along its real outline in flowing dots, then fading in one by one (140ms after its outline, 90ms each, 90ms apart on a gentle in-out curve), with dots flying in to each glyph.Headlines, titles, pull quotes, slide titles.03-text.md
`small-text`A dotted line through each line of text; the characters fade in as it passes.Eyebrows, subtitles, captions, labels.04-small-text.md
`image`A dotted frame, a sketch of the photo's tones, a fine halftone of its pixels, a dot matrix in its colours, then the photo.Hero images, image cards, covers.05-image.md
`auto`Text and images in one block: text at display (32px) or larger as text, smaller as small-text, every image as image.A hero or editorial block mixing a headline, copy and a photo.

text, small-text, image and auto are drawn by `text-image-generation.js`, which ships with this skill; generate(el, { variant }) from ui-generation.js hands them over. Those variants generate only their own content; the rest of the element shows as it is.

Works in every agent that reads skills (Claude Code, Cursor, Codex, and others): install with npx skills add Jakubantalik/transitions.dev, or copy this folder into the project.

What the ui variant draws

In order, over one build (default 2400ms of drawing, about 2.6s in all):

  1. Dot field. A grid of small dots ripples out from the centre, with matrix rain falling down its columns and a probe line sweeping across.
  2. Construction. Guides run along the element's edges past its corners, corner handles pop in, and a size label counts up to the real size with a build timer.
  3. Outline. The outline is traced from the top centre in both directions in small flowing dots, while loose dots fly in and land on it.
  4. Parts. Every box, text line and icon path is traced in document order. Key elements (buttons, inputs, the largest boxes) get their own guides, handles and size label, and a targeting reticle jumps from part to part with a coordinate readout.
  5. Reveal. The real UI comes in top to bottom behind a scan line, fading and sharpening on --ease-smooth-out, while the drawing is wiped away and the dots clear.

Modes

Every variant takes the same two modes (for the text and image variants, skeleton maps to their trace and skeleton-texts to trace-texts: an agent log of every glyph and image and a step line, see 06-text-image-texts.md).

ModeWhat you getUse forReference
`skeleton`The dotted drawing and the reveal.Most places: a card or panel an agent produced, an empty state filling in, a hero moment.01-skeleton.md
`skeleton-texts`The same, plus generation texts: an agent log (one line per part with a progress bar), the motion CSS being written (the element's own values on the transitions.dev token scale), and a step line ("Planning layout" … "Ready").Showcases and launch moments where the "agent at work" story matters: landing pages, demos, onboarding, product videos. Needs space beside or under the element; it places the texts only where the page is empty.02-skeleton-texts.md

Decision rules

  • A headline → text. Its subtitle or eyebrow → small-text. A photo → image. A hero mixing them → auto, or each element with its own variant and a delay. A card or component → ui.
  • An AI feature returns UI (a generated component, a chart, a summary card, a draft) → skeleton, played when the result arrives.
  • A launch page, demo or video that should tell the "built by an agent" story → skeleton-texts, played when it scrolls into view.
  • The user asks for "the texts", "the log", "the code streaming", "the futuristic version" → skeleton-texts.
  • Several elements at once (a grid of results) → skeleton on each with a delay of about 260ms per item. The texts only fit around one element at a time.
  • Small inline UI (a badge, a single button, anything under about 120px) or UI that appears often (every route change, every list row) → don't use this. Use the transitions-dev skeleton reveal (14-skeleton-reveal.md) or texts reveal instead: a generation animation is a moment, not a loading state.
  • Unsure which mode → skeleton. Ask before adding the texts.

Commands

transitions generate

Trigger phrases: transitions generate, "add the generation animation", "make this look AI generated", "animate this like an agent builds it".

Behaviour:

  1. Find the element: the one the user named, the component in the open file, or the element nearest the cursor. If it is ambiguous, ask which.
  2. Pick the variant (default ui; text, small-text, image, auto) and the mode with the decision rules (default skeleton), and the trigger: on mount, when data arrives, on scroll into view, or on demand.
  3. Propose it in one line, for example: "I'd play skeleton on <ResultCard> when the response arrives. Confirm?"
  4. On confirmation, follow ## Install and ## Wiring below. Keep the diff small.
transitions generate texts

Same as transitions generate with mode: "skeleton-texts". Mention that the texts need empty space beside or under the element and are skipped where there is none.

transitions generate preview

Serve the folder over http (for example npx serve in this directory) and open:

  • `demo.html`: the ui variant on three components published on the transitions.dev Community (Heart Rate Monitor, Chart card, Music Player Likes), each in its own shadow root, with a one-card layout that shows the side panels.
  • `demo-text.html`: one title ("Generative skill", Saans Medium from the repo's assets/fonts, Inter when served on its own) in the text and small-text variants, with a settings panel (variant, build, delay, fade, delay between characters, sequence easing with a draggable curve, fade by, focus bracket, coordinates, type guides, flying dots) remembered per browser.
  • `demo-editorial.html`: an editorial page (hero, two image cards, a quote) in the auto variant, the same panel with all variants.

Install

  1. Copy `ui-generation.js`, `text-image-generation.js` (it imports this one, for the text and image variants), `ui-generation.css` and `text-image-generation.css` into the project (for example src/lib/ or public/vendor/). No dependencies.
  2. Import both CSS files once, globally (a <link>, or import "./ui-generation.css" in the app entry).
  3. Import generate (and auto for the attribute API) where the element lives.

Do not rewrite the runtime or its timings. They are tuned together: the drawing phases, the dot spacing, the flow speed and the reveal curve.

Wiring

Call generate after the element has rendered and has its final size, with fonts loaded. It hides the element itself until the reveal, then restores its inline opacity, clip-path and filter.

Text and image variants: call generate after fonts and images have loaded (await document.fonts.ready, await img.decode()): glyphs are traced in the font the page renders, and the sketch and halftone read the image's pixels. Their text blocks are held behind a mask and their images at opacity: 0 until they come in, and restored after.

js
await generate(headline, { variant: "text" }).finished;
generate(subtitle, { variant: "small-text", delay: 400 });
generate(cover, { variant: "image", delay: 600 });

Vanilla

js
import { generate } from "./ui-generation.js";
await document.fonts.ready;
const run = generate(document.querySelector("#result"), { mode: "skeleton" });
await run.finished; // the real UI is fully in

Attribute API (plays each element once it scrolls into view)

html
<section data-t-generate="skeleton-texts" data-t-generate-delay="200">…</section>
<script type="module">
import { auto } from "./ui-generation.js";
auto();
</script>

React / Next.js (client component)

jsx
"use client";
import { useLayoutEffect, useRef } from "react";
import { generate } from "@/lib/ui-generation.js";
export function GeneratedCard({ data }) {
const ref = useRef(null);
useLayoutEffect(() => {
if (!ref.current) return;
const run = generate(ref.current, { mode: "skeleton" });
return () => run.cancel();
}, [data]); // replays when new data arrives
return <div ref={ref} className="card">{/* … */}</div>;
}

Vue

js
import { onMounted, onBeforeUnmount, ref } from "vue";
import { generate } from "@/lib/ui-generation.js";
const el = ref(null); let run;
onMounted(() => { run = generate(el.value, { mode: "skeleton" }); });
onBeforeUnmount(() => run && run.cancel());

Svelte (action)

js
import { generate } from "$lib/ui-generation.js";
export function generating(node, mode = "skeleton") { const run = generate(node, { mode }); return { destroy: () => run.cancel() }; }
// <div use:generating={"skeleton-texts"}>…</div>

Timeline (video tools)

For the text and image variants, timeline(element, options) builds the same drawing without running it: seek(ms) draws the build at that time, backwards too, so a video editor or a frame-by-frame renderer can scrub it. Before 0 the element is hidden; from end on it is as it was. Pass parent (a positioned element such as a scene) to put the overlay inside it so it shows and hides with it. destroy() restores everything.

js
import { timeline } from "./ui-generation.js";
const tl = timeline(title, { variant: "text", duration: 3000, parent: scene });
tl.seek(1200); // e.g. from the video's render loop

API

generate(element, options) returns { finished, cancel, element }. finished resolves when the real UI is fully in. cancel() stops at once and shows the element as it is. Calling generate again on the same element cancels the previous run.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jakubantalik/transitions.dev/transitions-ui-generation/badge)](https://verified-skill.com/skills/jakubantalik/transitions.dev/transitions-ui-generation)

Something wrong with this skill or its page? Tell us.