Chuyển đến nội dung
Skillpedia
Giao diện (UI/UX)6.0k · #14457

transitions-ui-generation

Skill này làm gì

Skill này thêm hoạt ảnh vẽ dần vào một phần tử trên trang, khiến nó trông như một agent AI đang tạo ra nó. Skill dành cho nhà thiết kế và lập trình viên muốn một hiệu ứng xuất hiện ấn tượng cho giao diện, tiêu đề hoặc hình ảnh.

Khi nào nên dùng

  • ✓Khi bạn muốn một thẻ hoặc bảng xuất hiện như thể một agent đang xây dựng nó.
  • ✓Khi bạn muốn một tiêu đề được vẽ bằng chấm trước khi chữ hiện rõ.
  • ✓Khi bạn muốn một ảnh hero tự hiện ra từ một mẫu chấm.

Liên kết skill

https://github.com/Jakubantalik/transitions.dev/blob/main/skills/transitions-ui-generation/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/Jakubantalik/transitions.dev/blob/main/skills/transitions-ui-generation/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm cho tiêu đề hero của tôi xuất hiện như thể một AI đang vẽ nó bằng các chấm trước khi chữ ổn định.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Hiệu ứng đo phần tử thật trên trang, vẽ một bản chấm của đường viền nó, rồi chuyển sang nội dung thật để mọi thứ khớp nhau.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

Variant What it generates Use for Reference
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).

Mode What you get Use for Reference
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
Câu hỏi thường gặp

Hoạt ảnh có được làm giả không?

Không. Hình vẽ được đo từ chính phần tử, nên nó khớp với vị trí nội dung thật xuất hiện.

Những phần nào của trang có thể dùng?

Hiệu ứng dùng được cho các component giao diện, tiêu đề, văn bản nhỏ và hình ảnh, mỗi loại có biến thể riêng.

Biến thể mặc định là gì?

Mặc định là ui, vẽ một khung dây chấm của cấu trúc component.

Chi tiết

Mô tả gốc của tác giả

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

repo: Jakubantalik/transitions.dev

Độ phổ biến

Sao GitHub
6.0k
Vị trí xếp hạng
#14457
Giấy phép
—
Cập nhật
29/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự