motion-design-toolkit
Skill2 starsChanged 4 months agoMITView on GitHub
Design and implement web motion and micro-interactions using GSAP, Framer Motion (motion/react), and Lottie — scroll-triggered animation, page/route transitions, gesture-driven UI, and after-effects-exported animations. Use whenever the user mentions animation, motion design, GSAP, Framer Motion, Lottie, scroll effects, page transitions, hover/micro-interactions, or wants a site to "feel alive"/premium. This skill routes to the right library per use case rather than reaching for one tool for everything.
In this repository22 other files it gives its agents.
- accessibility-a11ySkill
- design-system-tailwindSkill
- nextjs-architectureSkill
- react-component-engineeringSkill
- react-three-fiber-3dSkill
- responsive-mobile-firstSkill
- auth-authorizationSkill
- database-schema-designSkill
- form-validation-error-handlingSkill
- mern-stack-architectureSkill
- rest-api-integrationSkill
- state-managementSkill
- landing-page-conversionSkill
- payment-gateway-integrationSkill
- saas-dashboard-adminSkill
- startup-mvp-developmentSkill
- ux-research-flow-designSkill
- visual-design-languageSkill
- ai-assisted-frontend-workflowSkill
- deployment-vercel-productionSkill
- performance-seo-optimizationSkill
- project-architecture-clean-codeSkill
The file
Files
Motion Design Toolkit Skill (GSAP · Framer Motion · Lottie)
Three motion libraries, one decision framework — pick the right tool per job instead of defaulting to whichever is most familiar.
Which library for which job
| Need | Use |
| Scroll-triggered sequences, timelines, pinning, complex choreography, SVG morphing | GSAP (+ ScrollTrigger) |
| React-idiomatic component animation, layout/shared-element transitions, gestures (drag/hover/tap), page transitions in Next.js | Framer Motion (motion/react) |
| Designer-exported vector animations (After Effects → Lottie JSON) — icons, illustrations, success/loading states | Lottie (lottie-react / @lottiefiles/dotlottie-react) |
Don't reach for GSAP inside every component for simple enter/exit — that's Framer Motion's job. Don't reimplement a designer's AE animation by hand — that's Lottie's job. Don't fight Framer Motion's declarative model for a 12-step pinned scroll sequence — that's GSAP's job.
Cross-cutting rules (apply regardless of library)
- Respect
prefers-reduced-motion— every non-essential animation gets a reduced/skipped variant. Checkwindow.matchMedia('(prefers-reduced-motion: reduce)')and gate accordingly. - Animate cheap properties:
transform(translate/scale/rotate) andopacityonly for anything performance-sensitive or scroll-linked — never animatetop/left/width/height/box-shadowin a hot loop (forces layout/paint). - Clean up on unmount: kill GSAP timelines/ScrollTriggers and Framer Motion animation controls when a component unmounts, especially in Next.js route transitions — orphaned ScrollTriggers are the #1 source of "animation still running on a page I left" bugs.
- One driver per property — don't have GSAP and Framer Motion (or CSS transitions) fighting over the same element's
transform.
Reference files (load the one relevant to the task)
references/gsap.md— ScrollTrigger setup, timelines, cleanup in React/Next.js, SVG animationreferences/framer-motion.md— variants, layout animation, gestures, AnimatePresence/page transitionsreferences/lottie.md— importing AE exports, interactivity, performance, segment control
Example prompts this skill should trigger on
"Add a scroll-triggered reveal animation to the landing page sections." "Animate this card component with a hover lift and tap feedback." "Our designer sent a Lottie file for the loading spinner, integrate it."
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

