Agent skill Web motion
UI Animation
Design, implement or review motion on the web.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add mblode/agent-skills --skill ui-animation --agent claude-code --yesCheck this file in your project.claude/skills/ui-animation/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add mblode/agent-skills --skill ui-animationSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. An authorized original screen recording, FFmpeg/ffprobe, Python, and OpenCV, NumPy, and SciPy for tracking and fitting.
View operation manualWhat this skill helps with
- Design, implement or review motion on the web.
Good for
- Web motion and transitions
- Publisher
- mblode
- Control points
- extract_frames.py · track_motion.py --bbox · fit_curves.py --fps
- Result
- Extracted frame sheets, metrics.json, proposed timing fits, and a comparison with the original recording.
- Skill name
ui-animation- Repository
mblode/agent-skills
Common pitfall
Avoid this prompt
Extract at 60 fps, leave the fit’s 30 fps default, and treat it as exact timing.
Mismatched sampling doubles reported timing in that example, and a fit needs visual and error checks.
Use these steps
- Inspect source and behavior
- Apply the documented technique
- Verify the original interaction
Project walkthrough
Measure an original animation from a recording and compare the scripted fit with the observed phases.
Measure an original animation from a recording and compare the scripted fit with the observed phases.
Inspect source and behavior
Inspect source and behavior
Prompt · Step 1Use UI Animation to measure [my original panel recording]. Probe the source frame rate with ffprobe and trim separate open and close windows. Include a clean opening background frame for tracking and trim the settled hold if measuring movement duration. Run python3 scripts/extract_frames.py <video> <frame folder> --fps <sampling rate> --start <start> --duration <length> from the skill directory and inspect contact_sheet.png.Apply the documented technique
Apply the documented technique
Prompt · Step 2Identify the moving panel region and run python3 scripts/track_motion.py <frame folder> --bbox X,Y,W,H, then python3 scripts/fit_curves.py <frame folder>/metrics.json --fps <extraction fps> --property translate. Check gaps, plateaus, and fit error. The tracker compares each frame against the first, so if it cannot isolate the closing panel from that reference, measure the close visually and label it an estimate.Verify the original interaction
Both runs use the same sampling rate and measured phases are confirmed against the contact sheets.
- Both runs use the same sampling rate and measured phases are confirmed against the contact sheets.
Prompt · Step 3Implement the approved motion for the same original panel and record the new open and close under the same conditions. Extract the frames at the same rate, compare contact sheets, and report differences in start, settle, and overshoot. Label values as estimates when the tracker misses or the fit is poor.
Implementation lookup
Find the documented inputs and verification target for this walkthrough.
Check the control pointsInputs
- Command or reference
extract_frames.py · track_motion.py --bbox · fit_curves.py --fps- Examples
- Both runs use the same sampling rate and measured phases are confirmed against the contact sheets.
FAQ
What can I verify with FFmpeg alone?
Extract frames and compare visible phases and approximate timing. Tracking and numeric fitting also require the published Python dependencies.
Where are the instructions?
Open the installed SKILL.md and following references for the selected technique. The publisher link points to the revision verified for this handbook.