/magic-ui-ux:video-to-websitefrom magic-ui-ux
Generates scroll-driven animated site specs from video content, producing canvas frame sequences, GSAP ScrollTrigger configurations, section choreography timing, and Lenis smooth scroll integration.
Ships in magic-ui-ux. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Generate scroll-driven video-style site specs -- the specifications needed to build pages where scrolling acts like video playback. Think Apple product pages, automotive showcases, or any site where image sequences play on scroll. The skill produces implementation-ready specs with exact frame counts, scroll distances, content overlay timing, and library configurations.
Scroll-video specs are supplementary deliverables. They can be generated after the animation skill completes for pages designated as video-style experiences, or run standalone for any page with status "designed" or "iterated" in state.json.
| Parameter | Type | Required | Description |
|---|---|---|---|
page | string | Yes | Page name (must have status "designed" or "iterated" in state.json) |
uxBrief | file | Yes | UX brief from .ui-ux/briefs/{page}-ux-brief.md |
tokens | object | Yes | Design tokens from .ui-ux/tokens.json |
sequences | object[] | Yes | Frame sequence definitions (see below) |
{
"name": "hero-product-reveal",
"frameCount": 300,
"framePattern": "frames/hero/frame-{NNNN}.webp",
"description": "Product rotates from side angle to front view"
}
name: Identifier for this sequence (used in spec headings and CSS classes)frameCount: Total number of frames in the sequence (must be > 0, max 600)framePattern: Path pattern with {NNNN} placeholder for zero-padded frame numbersdescription: Human-readable description of what the sequence shows.ui-ux/briefs/{page}-scroll-video-spec.mdstate.json.scrollVideoSpecs[] with new entry.ui-ux/state.json -- verify the target page exists and has status "designed" or "iterated". If not, halt with an error explaining the page must be designed first..ui-ux/tokens.json -- extract the UI style (e.g., "Minimalism", "Dark Mode Premium") to determine animation intensity..ui-ux/briefs/{page}-ux-brief.md -- extract the section structure, section types, and psychology skills applied to each section.skills/video-to-website/references/scroll-video-guide.md -- load library-specific patterns for canvas rendering, scroll-to-frame mapping, and section choreography.frameCount > 0, frameCount <= 600, framePattern contains {NNNN} placeholder.For each section in the UX brief, determine its type:
Map sequences from input to sections. A single page might have 1-3 video sequences interspersed with standard content.
Determine animation intensity from UI style:
| UI Style | Intensity | Scroll Distance | Overlay Transition | Lenis Duration |
|---|---|---|---|---|
| Minimalism | restrained | 200-300vh | Instant | 1.0-1.2s |
| Clean Modern | restrained | 200-300vh | Instant | 1.0-1.2s |
| Editorial | moderate | 300-400vh | 0.3s fade | 1.2-1.4s |
| Bold / Vibrant | expressive | 400-500vh | 0.5s fade + transform | 1.4-1.8s |
| Organic / Rounded | moderate | 300-400vh | 0.3s fade | 1.2-1.4s |
| Technical / Data-Driven | restrained | 200-300vh | Instant | 1.0-1.2s |
| Dark Mode Premium | expressive | 400-500vh | 0.5s fade + transform | 1.4-1.8s |
For each video sequence section, build:
a. Frame Timeline -- map scroll progress (0.0-1.0) to frame ranges with descriptive labels:
| Scroll Progress | Frame Range | Description |
|---|---|---|
| 0.0-0.2 | 1-60 | Initial reveal, product enters frame |
| 0.2-0.5 | 60-150 | Key angle rotation, main feature visible |
| 0.5-0.8 | 150-240 | Detail zoom or secondary feature |
| 0.8-1.0 | 240-300 | Final position, hero pose |
b. Content Overlays -- choreography table mapping scroll progress to text/CTA visibility:
| Progress | Element | Enter | Exit | Position |
|---|---|---|---|---|
| 0.05 | Title | fade-in 0.3s | fade-out at 0.18 | center-top |
| 0.2 | Feature 1 | fade-in 0.3s | fade-out at 0.45 | bottom-left |
| 0.5 | Feature 2 | fade-in 0.3s | fade-out at 0.75 | bottom-right |
| 0.8 | CTA | fade-in 0.3s | hold | center-bottom |
c. GSAP ScrollTrigger Config -- pin: true, scrub value, start/end, onUpdate callback for frame rendering. Exact code pattern from references/scroll-video-guide.md.
d. Canvas Setup -- responsive sizing, poster frame source, preload strategy (eager for first sequence, lazy for subsequent).
For standard sections between sequences:
skills/animation/references/animation-guide.md for these sectionsFor content overlay sections:
Write the spec to .ui-ux/briefs/{page}-scroll-video-spec.md with this structure:
# Scroll-Video Spec: {Page Name}
## Overview
- **UI Style:** {from tokens}
- **Animation Intensity:** {restrained | moderate | expressive}
- **Total Sequences:** {count}
- **Total Scroll Distance:** {estimated vh}
- **Smooth Scroll:** Lenis {duration}s, GSAP ticker integration
## Frame Sequences
### Sequence: {name}
**Frames:** {count} ({format})
**Scroll Distance:** {N}vh
**Canvas:** Full viewport, responsive, poster frame at frame 1
#### Frame Timeline
| Scroll Progress | Frame Range | Description |
|----------------|-------------|-------------|
| 0.0-0.2 | 1-60 | {description} |
| ... | ... | ... |
#### Content Overlays
| Progress | Element | Enter | Exit | Position |
|----------|---------|-------|------|----------|
| 0.05 | Title | fade-in 0.3s | fade-out at 0.18 | center-top |
| ... | ... | ... | ... | ... |
#### GSAP Configuration
```js
// ScrollTrigger pin/scrub config
// Canvas frame rendering callback
// Overlay timeline
{Preload approach, mobile optimization, fallback}
[repeat for each sequence]
{Standard scroll sections between sequences -- reference animation skill patterns}
{Lenis config optimized for scroll-video, GSAP ticker integration}
{Frame counts, estimated sizes, mobile strategy}
{prefers-reduced-motion: poster frames + static content, no frame sequences} {Keyboard navigation: section jump links}
### Step 5: Persistence
1. Add entry to `state.json.scrollVideoSpecs[]`:
```json
{ "page": "{page}", "specPath": ".ui-ux/briefs/{page}-scroll-video-spec.md" }
state.json.updatedAt to current ISO timestamp<video> elements for scroll-controlled playback -- they cannot be scrubbed precisely.The skill is invoked after the animation skill for pages designated as video-style experiences. It is a supplementary deliverable -- not required for standard page design. It can be run standalone:
# After /design completes, for video-style pages:
# "Generate scroll-video spec for {page}"
See references/scroll-video-guide.md for detailed canvas rendering patterns, scroll-to-frame mapping, GSAP pin/scrub configurations, Lenis integration, performance guidelines, and anti-patterns.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
scroll-driven-animation, gsap, scrolltrigger, lenis, video-sites, animation-specs
npx claudepluginhub flyingwebie/skills --plugin magic-ui-ux8 skills in this plugin
/animationGenerates per-page animation choreography specs. Reads UX briefs for psychology context and design tokens for style-appropriate motion. Produces implementation-ready specs with Framer Motion, GSAP + ScrollTrigger, Swup.js, and Lenis code patterns.
/brandingGenerates complete design systems from project niche/industry descriptions. Produces machine-readable tokens (tokens.json) and human-readable design documentation (branding.md) using industry-specific design rules and color psychology.
/copy-generationGenerates page copy (headlines, subheadings, body text, CTAs, labels) based on project niche, page type, and UX brief psychology rationale. Presents all copy for human approval before use. Never passes unapproved copy to the UI Agent.
/image-generationGenerates comprehensive JSON visual specifications from text descriptions, reference images, or both. Translates photography/cinematography parameters into rich natural-language image guidance that dramatically improves Stitch's image rendering in generated screens.
/magic-ui-uxRun psychology-led branding, page design, iteration, image specification, motion, sync, and export workflows in Codex./persistenceManages the .ui-ux/ persistence folder. Handles initialization, reading, and writing of design tokens, project state, and screen references. Every command MUST read from .ui-ux/ before any design operation.
Other plugins' skills for the same job