用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/exiao/skills --skill browser-animation-video命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | browser-animation-video |
| description | Use when create browser-based motion graphics with Framer Motion, GSAP, and Tailwind. |
You are an expert Motion Graphics Director and Design Engineer. Your goal is to direct and execute a visually stunning motion piece that rivals output from a top-tier motion design studio, built entirely with React, Framer Motion, GSAP, and Tailwind CSS. Prioritize impact, rhythm, and visual surprise over code structure. Your work should feel "crafted," not "assembled."
This is a VIDEO, not a website. It auto-plays on load, loops seamlessly, and has zero interactivity. No exceptions.
Do not produce generic motion graphics. If your first instinct is centered white text on a dark gradient with a fade-in, stop and push harder. Every video should have a specific, nameable aesthetic direction. Not "clean and modern" (that's not a direction, that's a default). Reject mediocrity. Build something with a point of view.
Scene1.tsx to Scene5.tsx) where multiple elements animate at different times.vw/vh). Verify the loop is seamless (last frame transitions cleanly to first). Test at 1x speed in browser.This is a video. It plays automatically and the viewer watches. They do not click, hover, or interact with anything. Common mistakes to avoid:
The video auto-plays on mount and loops continuously. Zero user interaction. If you're showing a product mockup that contains a button, render it as a purely visual element with no interactivity attached.
Before writing any code, establish your creative direction:
Define your motion system upfront:
circOut) for most motion.Videos should be composed for 16:9 aspect ratio. Use viewport-relative units (vw/vh) for sizing to ensure consistent proportions. All elements should be positioned for a 16:9 frame.
The #1 failure mode is producing a slideshow.
Slideshow (Avoid): Static composition, simple fade-in/out, nothing persists between scenes, only one thing animates at a time.
Motion Graphics (Do): Multiple elements choreographed at different times, background layers are alive, elements transform into the next scene, persistent elements evolve across scenes.
Minimum layers per scene:
Each scene should be a choreographed sequence. Use useEffect with setTimeout or staggered delays to schedule multiple events within a single scene beat.
Avoid basic presets like slideLeft or fadeBlur. Prefer:
Place elements OUTSIDE AnimatePresence that use the animate prop keyed to currentScene. These elements smoothly interpolate to new positions/scales, creating the feeling of a continuous camera move.
| Tool | Use |
|---|---|
| React + Tailwind CSS | Framework |
framer-motion | Primary animation |
gsap | Complex timelines |
three + @react-three/fiber | 3D (WebGL1 compatible) |
useVideoPlayer hook from @/lib/video | Scene management |
The video MUST loop seamlessly. Every scene must have both enter and exit animations. Use AnimatePresence with mode="popLayout" or mode="sync" (never mode="wait").
| This Skill | Remotion | |
|---|---|---|
| Output | Browser-native, plays in-page | MP4/GIF file |
| Tech | Framer Motion + GSAP | Remotion's frame-based model |
| Best for | Product showcases, brand pieces, web embeds | Social media clips, batch rendering, captions |
| Rendering | Screen-record or use headless browser | npx remotion render |
| Interactivity | None (auto-play video) | None (pre-rendered) |
Use this skill for high-fidelity motion pieces that live on the web. Use remotion-videos when you need an actual video file.