gsap-router
31
总安装量
31
周安装量
#6676
全站排名
安装命令
npx skills add https://github.com/bbeierle12/skill-mcp-claude --skill gsap-router
Agent 安装分布
claude-code
21
opencode
21
gemini-cli
19
codex
19
github-copilot
17
Skill 文档
GSAP Router
Routes to 4 specialized skills based on animation requirements.
Routing Protocol
- Classify â Identify animation type from user request
- Match â Apply signal matching rules below
- Combine â Production animations often need 2-3 skills together
- Load â Read matched SKILL.md files before implementation
Quick Route
Tier 1: Core (Start Here)
| Need | Skill | Signals |
|---|---|---|
| Basic animations, easing | gsap-fundamentals |
tween, animate, ease, from, to, duration, delay |
| Complex sequences | gsap-sequencing |
timeline, sequence, orchestrate, labels, callbacks |
| Scroll animations | gsap-scrolltrigger |
scroll, pin, scrub, parallax, reveal, sticky |
| React integration | gsap-react |
React, useGSAP, ref, hook, cleanup, context |
Signal Matching
Primary Signals
gsap-fundamentals:
- “animate”, “tween”, “transition”
- “ease”, “easing”, “timing”
- “from”, “to”, “fromTo”
- “duration”, “delay”, “repeat”
- “stagger”, “properties”
gsap-sequencing:
- “timeline”, “sequence”, “orchestrate”
- “labels”, “callbacks”, “nested”
- “position parameter”, “overlap”
- “complex animation”, “choreography”
- “play”, “pause”, “reverse”, “seek”
gsap-scrolltrigger:
- “scroll”, “ScrollTrigger”
- “pin”, “sticky”, “fixed”
- “scrub”, “parallax”
- “reveal on scroll”, “snap”
- “progress indicator”
gsap-react:
- “React”, “component”
- “useGSAP”, “useRef”, “hook”
- “cleanup”, “context”
- “event handler”, “state”
Confidence Scoring
- High (3+ signals) â Route directly to matched skill
- Medium (1-2 signals) â Route with fundamentals as foundation
- Low (0 signals) â Start with
gsap-fundamentals
Common Combinations
Basic Animation (1 skill)
gsap-fundamentals â Tweens, easing, basic properties
React Component Animation (2 skills)
gsap-fundamentals â Animation principles, easing
gsap-react â Hook patterns, cleanup, refs
Scroll-Based Experience (3 skills)
gsap-scrolltrigger â Scroll triggers, pinning
gsap-sequencing â Timeline for pinned sections
gsap-fundamentals â Individual animations
Full Production (3-4 skills)
gsap-fundamentals â Core animations
gsap-sequencing â Complex orchestration
gsap-react â Framework integration
gsap-scrolltrigger â Scroll interactions (if needed)
Decision Table
| Framework | Animation Type | Complexity | Route To |
|---|---|---|---|
| Vanilla JS | Simple | Low | fundamentals |
| Vanilla JS | Sequenced | Medium | fundamentals + sequencing |
| Vanilla JS | Scroll-based | Medium | fundamentals + scrolltrigger |
| React | Simple | Low | fundamentals + react |
| React | Complex | High | All four skills |
| React | Scroll | Medium | react + scrolltrigger |
Animation Categories
Motion Type â Skill Mapping
| Animation Type | Primary Skill | Supporting Skill |
|---|---|---|
| Fade in/out | gsap-fundamentals |
– |
| Slide/move | gsap-fundamentals |
– |
| Scale/rotate | gsap-fundamentals |
– |
| Stagger | gsap-fundamentals |
– |
| Page transitions | gsap-sequencing |
fundamentals |
| Orchestrated reveals | gsap-sequencing |
fundamentals |
| Scroll reveals | gsap-scrolltrigger |
fundamentals |
| Parallax | gsap-scrolltrigger |
– |
| Pinned sections | gsap-scrolltrigger |
sequencing |
| React animations | gsap-react |
fundamentals |
| React + scroll | gsap-react |
scrolltrigger |
Integration with Other Domains
With R3F (r3f-*)
r3f-fundamentals â 3D scene setup
gsap-fundamentals â Object property animation
gsap-sequencing â Camera movements, scene transitions
GSAP animates Three.js object properties via onUpdate.
With Post-Processing (postfx-*)
postfx-composer â Effect setup
gsap-fundamentals â Animate effect parameters
gsap-sequencing â Transition between effect states
GSAP drives effect intensity, colors, etc.
With Audio (audio-*)
audio-playback â Music timing
gsap-sequencing â Sync animations to audio cues
gsap-fundamentals â Audio-reactive property changes
Timeline callbacks sync with audio events.
With Particles (particles-*)
particles-systems â Particle emitters
gsap-fundamentals â Animate emitter properties
gsap-sequencing â Particle burst sequences
Workflow Patterns
Page Load Animation
1. gsap-fundamentals â Understand tweens, easing
2. gsap-sequencing â Build entrance timeline
3. gsap-react â Integrate with React (if applicable)
Scroll Experience
1. gsap-scrolltrigger â Set up triggers, pins
2. gsap-sequencing â Build scrubbed timelines
3. gsap-fundamentals â Individual animation properties
Interactive UI
1. gsap-fundamentals â Hover, click animations
2. gsap-react â Event handlers, cleanup
3. gsap-sequencing â Complex interaction sequences
Temporal Collapse Stack
For the New Year countdown project:
gsap-fundamentals â Digit animations, pulse effects, easing
gsap-sequencing â Countdown sequence, final moment orchestration
gsap-react â Component integration, cleanup
Key animations:
- Digit flip on time change
- Pulse/glow intensity over time
- Final countdown dramatic sequence
- Celebration reveal at zero
Quick Reference
Task â Skills
| Task | Primary | Secondary |
|---|---|---|
| “Animate this element” | fundamentals | – |
| “Create entrance animation” | fundamentals | react |
| “Build page transition” | sequencing | fundamentals |
| “Animate on scroll” | scrolltrigger | fundamentals |
| “React component animation” | react | fundamentals |
| “Pinned scroll section” | scrolltrigger | sequencing |
| “Complex animation sequence” | sequencing | fundamentals |
| “Staggered list animation” | fundamentals | react |
Easing Quick Reference
| Feel | Ease |
|---|---|
| Snappy UI | power2.out |
| Smooth entrance | power3.out |
| Playful bounce | back.out(1.7) |
| Springy | elastic.out |
| Ball drop | bounce.out |
| Linear/mechanical | none |
Fallback Behavior
- No framework stated â Assume vanilla JS, start with
gsap-fundamentals - React mentioned â Add
gsap-reactto combination - Scroll mentioned â Add
gsap-scrolltrigger - “Complex” or “sequence” â Add
gsap-sequencing - Unclear requirements â Start with
gsap-fundamentals
Performance Priority
When performance is critical:
gsap-fundamentalsâ Use transforms, avoid layout propertiesgsap-reactâ Proper cleanup prevents memory leaksgsap-scrolltriggerâ Usescrubwisely, batch updatesgsap-sequencingâ Reuse timelines, don’t recreate