web-animation-skill
Health Uyari
- No license — Repository has no license file
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Gecti
- Code scan — Scanned 1 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Agent skill for real-time web animation: brief → build → animate → refine → render. Coding agents verify motion with deterministic frame screenshots. Native APIs + GSAP, Motion, Anime.js v4, Three.js and 7 more.
Web Animation Skill
A skill that teaches AI coding agents (Claude Code, Codex, Cursor, GitHub Copilot, …) to build real-time web motion: picking the lightest tool, writing current APIs, respecting reduced motion, and checking the result frame by frame instead of guessing.
Live showcase · Full interactive tour (MP4, 26 s) · every card runs the library its rule describes
Install
npx skills add yuzhang-ai/web-animation-skill
Or copy SKILL.md and rules/ into your agent's skills folder (for example .claude/skills/web-animation/).
How it works
SKILL.md is the entry point. It gives the agent the workflow, a quick picker, the non-negotiables, and motion tokens. The agent then loads only the rule file it needs.
Brief → one-line motion spec per element (+ its reduced-motion version)
Build → lightest tool that does the job: CSS / native first, then a library
Animate → transform & opacity, shared duration/easing tokens, interruptible
Refine → capture frames at key timestamps and look at them; check perf
Render → lazy-load, pause off-screen, export GIF/MP4 when asked
Rules
| Area | Rule | Covers |
|---|---|---|
| Process | workflow | Motion spec, tokens, timing rules of thumb, frame-by-frame verification with Playwright |
| art-direction | Mood, palette, and type; one signature effect; rhythm and density; reactive polish recipes | |
| choosing-library | Decision flow and matrix across native APIs and 11 libraries, plus pinned CDN URLs for no-build pages | |
| accessibility | prefers-reduced-motion per library, pause controls, WCAG 2.2.2 / 2.3.1 |
|
| performance | Compositor-only properties, layout thrash, pausing off-screen loops | |
| export | Deterministic capture → ffmpeg, MediaRecorder, gifenc | |
| Native | native-apis | WAAPI, View Transitions, scroll-driven animations, @starting-style, linear() springs |
| css-keyframes | @keyframes, staggering with custom properties |
|
| scroll-animations | Scroll patterns across CSS, Motion, GSAP, Anime.js | |
| DOM / SVG | motion | Motion (formerly Framer Motion + Motion One): React and vanilla |
| gsap | Timelines, ScrollTrigger, useGSAP, SplitText, MorphSVG, Flip (all free) |
|
| animejs | Anime.js v4 API: stagger grids, svg module, onScroll, createScope |
|
| flubber | Standalone path morphing | |
| d3 | Data joins and transition chaining | |
| Asset playback | lottie | lottie-web, dotLottie, .lottie format |
| rive | State machines and inputs | |
| Canvas / WebGL | konva | Interactive canvas: layers, drag, Transformer |
| two-js | Generative 2D vector scenes (SVG ⇄ canvas ⇄ WebGL) | |
| proton | Particle emitters, initializers, behaviours | |
| three-js | Scenes, R3F, WebGPU, tweening 3D objects |
What's new in v2
- Current APIs. These snippets would break if written the old way, so the skill now uses:
framer-motion→motion(motion/react), with Motion One merged in- Anime.js v4 rewrite
- GSAP plugins now free, plus
useGSAP @lottiefiles/dotlottie-reactTHREE.TimerandsetAnimationLoop
- Workflow first. Agents can't watch animations, so the skill tells them how to verify one with captured frames.
- New rules: workflow, accessibility, native APIs, export, Proton, Two.js.
- Showcase page (
docs/index.html): a single static file that loads every library from jsDelivr and honours reduced motion. Highlights:- a flow-field hero with 2,600 particles
- a noise-displaced iridescent shader sphere
- spring chains fused by an SVG goo filter
- a draggable verlet rope
- Flubber one-to-many morphs
- firework emitters
- a CSS
view()3D drum picker
Showcase page
docs/index.html is self-contained. To run it locally, serve the folder (python -m http.server 8000 --directory docs). Every push to master that touches docs/ redeploys it to GitHub Pages through .github/workflows/pages.yml.
Regenerate the README media by recording the page (the deterministic method is in export.md) and encoding it with ffmpeg.
Scope
This skill is for real-time browser animation. For rendering videos as the final product, use Remotion or Motion Canvas.
License
MIT
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi