marktantongco/opencode-accomplishments/animation-hybrid-architect
Claude Code and agent skill by marktantongco/opencode-accomplishments
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Meta-skill for combining Motion v12 + GSAP v3.13+ with strict boundaries — Motion owns UI layer (modals, gestures, layout), GSAP owns content layer (scroll, text, SVG). Never animate same element with both.
Install
npx vskill@latest install marktantongco/opencode-accomplishments/animation-hybrid-architectSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as marktantongco/opencode-accomplishments/animation-hybrid-architect.
Animation Hybrid Architect
Meta-skill for architecting animation systems that combine Motion v12 and GSAP v3.13+ with strict ownership boundaries. Motion owns the UI layer (modals, gestures, layout transitions, presence animations, micro-interactions). GSAP owns the content layer (scroll sequences, text reveals, SVG morphs, timeline orchestration, page transitions). Never animate the same DOM element with both libraries.
Core Principles
- Strict layer ownership — Motion = UI layer; GSAP = content layer. No exceptions.
- Never overlap on same DOM node — If Motion animates a node, GSAP must not touch it. Period.
- Shared infrastructure —
prefers-reduced-motion,will-changemanagement, and GPU compositing rules are shared concerns. - Bundle budgets are sacred — 5KB ultra-runtime, 30KB mobile initial, 100KB web initial.
- Animation Orchestrator is the gate — All animation requests route through
animation-orchestratorfirst, which delegates to this skill for hybrid decisions. - 3.7GB RAM ceiling — Total memory for all animation code + runtime must stay under the Design OS limit.
- Cleanup is mandatory — Motion cleanup via component unmount; GSAP cleanup via
gsap.context().revert().
Architecture: Layer Ownership
Motion Layer (UI)
| Domain | Examples | API | |
|---|---|---|---|
| Modal animations | Open/close, backdrop fade | AnimatePresence + variants | |
| Gesture interactions | Drag, swipe, hover, tap | whileDrag, whileHover, whileTap | |
| Layout transitions | Grid reorder, size change | layout, layoutId | |
| Presence animations | Mount/unmount, route change | AnimatePresence + exit | |
| Micro-interactions | Button feedback, tooltip reveal | useAnimate mini (2.3KB) | |
| Simple scroll parallax | Header parallax, progress bar | useScroll + useTransform |
GSAP Layer (Content)
| Domain | Examples | API | |
|---|---|---|---|
| Scroll sequences | Multi-section pin + scrub | ScrollTrigger | |
| Text reveals | Character/word split animations | SplitText | |
| SVG animations | Path draw, morph, filter | DrawSVGPlugin, MorphSVGPlugin | |
| Timeline orchestration | Complex sequenced animations | gsap.timeline() | |
| Layout state changes | Grid filter/sort transitions | Flip | |
| Page transitions | Full-page crossfade/morph | ScrollTrigger + timeline |
Boundary Rules
7-Step Workflow
Step 1: Assess Animation Requirements
For each animation request, classify into layers:
Step 2: Define Boundaries
Create explicit boundary documentation for the project:
Step 3: Shared Infrastructure
Build shared animation utilities:
Step 4: Bundle Splitting
Implement lazy loading for animation libraries:
Step 5: Mobile Strategy
Step 6: Integration Pattern
Wire Motion and GSAP together without overlap:
Step 7: Audit Protocol
Run the animation audit before every commit:
Stack Patterns
See references/stack-patterns.md for 6 proven combination patterns:
- Landing Page — GSAP scroll hero + Motion UI interactions
- Dashboard — Motion layout transitions + GSAP chart animations
- Portfolio — GSAP scroll portfolio + Motion modal previews
- E-Commerce — Motion cart gestures + GSAP product reveals
- Blog/Magazine — GSAP text reveals + Motion share/like micro-interactions
- App Shell — Motion navigation + GSAP page transitions
Output Template
When architecting a hybrid animation system, output:
Anti-Patterns
- ❌ Both libraries animating same DOM node
- ❌ Motion
layout+ GSAPFlipon same elements - ❌ Motion
useScrollfor scroll-pinned sections (use GSAP ScrollTrigger) - ❌ GSAP for simple hover/tap micro-interactions (use Motion)
- ❌ Missing shared
prefers-reduced-motionhandling - ❌ Synchronous animation library imports in page/layout
- ❌ Exceeding 30KB mobile / 100KB web bundle budget
Integration Notes
- Upstream:
animation-orchestratorroutes to this skill for hybrid decisions - Downstream: Delegates to
motion-animation-engineerandgsap-animation-engineerfor implementation - Audit:
animation-auditorvalidates all hybrid code before commit - MCP: See
references/mcp-schema.mdfor 5-tool animation MCP server
References
references/stack-patterns.md— 6 proven combination patternsreferences/bundle-budgets.md— Per-tier budget allocationreferences/mobile-optimization.md— Low-end device strategiesreferences/mcp-schema.md— 5-tool MCP animation server schemareferences/cleanup-protocols.md— Memory leak prevention
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/animation-hybrid-architect/SKILL.md
Popularity
- Repository forks
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/marktantongco/opencode-accomplishments/animation-hybrid-architect)