animations
/animations
Motion — easing and timing rules, Framer Motion, GSAP, scroll-driven experiences, view transitions, reduced motion. Use when something has to move — entrances and exits, micro-interactions, hover states, scroll-driven sequences, parallax, route transitions, shared-element morphs, stagger, marquees, physics-based movement.
- Author
- krishna-modi12 ↗
- Repository
- frontend-design-pro ↗
- Licence
- MIT
- Last repository change
- 20.10.2026
Assessment and security
- Files in this package
- 26
- Scripts
- 11
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 20.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 11 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: examples/_r3f-jsx.d.ts, examples/_stubs.d.ts, examples/bad-animated.tsx, examples/good-anim-recipes.test.tsx, examples/good-anim-recipes.tsx, examples/good-scroll.test.tsx, examples/good-scroll.tsx, examples/good-view-transitions.test.tsx
What it does and when to use it
Motion — easing and timing rules, Framer Motion, GSAP, scroll-driven experiences, view transitions, reduced motion. Use when something has to move — entrances and exits, micro-interactions, hover states, scroll-driven sequences, parallax, route transitions, shared-element morphs, stagger, marquees, physics-based movement.
Original author description
Motion — easing and timing rules, Framer Motion, GSAP, scroll-driven experiences, view transitions, reduced motion. Use when something has to move — entrances and exits, micro-interactions, hover states, scroll-driven sequences, parallax, route transitions, shared-element morphs, stagger, marquees, physics-based movement.
How it works
- When to Use
- Stack
- Core Rules
- Patterns
- Examples
- Reference Index
- Constraints
SKILL.md preview
---
name: animations
description: Motion — easing and timing rules, Framer Motion, GSAP, scroll-driven experiences, view transitions, reduced motion. Use when something has to move — entrances and exits, micro-interactions, hover states, scroll-driven sequences, parallax, route transitions, shared-element morphs, stagger, marquees, physics-based movement.
metadata:
version: "15.0.0"
core-deps:
- core/design-tokens.md
- core/accessibility-baseline.md
---
# Animations
## When to Use
Any motion work: entrance/exit transitions, micro-interactions, hover states, scroll-driven sequences, parallax, page/route transitions, shared-element morphs, stagger, marquees, physics-based movement.
## Stack
React 19 · Framer Motion (component motion) · GSAP + ScrollTrigger (scroll/timeline) · React View Transitions (route) · CSS (simple states)
## Core Rules
1. **Motion is feedback, not decoration.** If removing it doesn't harm understanding, cut it. Name what a transition communicates before adding it — arrival, departure, relationship, state change, progress, consequence.
2. **Pick one motion personality and hold it.** Precise (120–200ms, sharp ease-out) · Calm (300–450ms, gentle ease-in-out) · Playful (250–400ms, spring) · Cinematic (500–800ms, heroes only). Mixed personalities read as incoherent even when nobody can say why.
3. **Easing.** Enter `ease-out` `cubic-bezier(0.23,1,0.32,1)`; `ease-in` only for exits ≤200ms; `ease-in-out` for movement. **Never `ease-in` for entrances.**
4. **Duration.** Button 100–160ms · dropdown 150–250ms · modal 200–500ms · page transition ≤800ms. Never exceed 600ms for standard UI.
5. **Animate `transform` and `opacity` only** — they're compositor-driven. Never `width`, `height`, `top`, `left`. **Never `transition: all`** — list properties explicitly.
6. **Never scale from 0.** Start at `scale(0.95)` minimum; 0 reads as a glitch.
7. **`prefers-reduced-motion` is mandatory** wherever motion exists — `useReducedMotion()`, a `@media` block, or Tailwind's `motion-reduce:`. Reduce to opacity or nothing; never ship motion a user has opted out of.
8. **Animations are interruptible.** New input takes over mid-flight rather than queueing behind the current tween — springs do this naturally.
9. **Don't animate high-frequency actions** (100+ per day: toggles, shortcuts) — delay compounds into annoyance.
10. **One system per element.** Framer for component state, GSAP for scroll timelines. Never both on the same node.
11. **Set an intentional `transform-origin`**; SVG transforms go on a `<g>` with `transform-box: fill-box`.
## Patterns
- **Stagger reveal** — container variants with `staggerChildren`, **80ms** apart per item (40ms per word when splitting text). Canonical config: `references/animation-framework.md`.
- **Shared-element morph** — `layoutId` (Framer) or `<ViewTransition name>` (React VT).
- **Scroll sequence** — GSAP ScrollTrigger with `scrub`, pinned sections, `invalidateOnRefresh`.
- **Magnetic / hover lift** — small transform on pointer proximity, disabled under reduced motion.
- **Skeleton shimmer** — `animate-pulse` on a real loading state, never a fake delay.
## Examples
`examples/good-anim-recipes.tsx` (stagger, counter, magnetic, reduced-motion) · `examples/good-scroll.tsx` (GSAP ScrollTrigger, SplitText, pinning) · `examples/good-view-transitions.tsx` · `examples/good-vt-shared-element.tsx` · `examples/bad-animated.tsx` (anti-example).
## Reference Index
Load only for the specific task:
| Task | Load |
|---|---|
| **Motion direction — what a motion communicates, personality archetypes, choreography, Disney principles, animation smells** | **`references/motion-direction.md`** |
| **How much this page should move at all — the L1/L2/L3 tiers, intent→tier table, per-page ceilings, reveal granularity** | **`references/motion-budget.md`** |
| The tier's own catalogue — every move that belongs at L1, L2 or L3, framework-free | `references/interaction-patterns.md` |
| A forward sweep for motion that is *missing* — the four-stage gate, where to hunt, the mandatory rejected list, the report format | `references/finding-motion.md` |
| Cinematic scroll composites — constellation hero, card collapse, pinned narrative, the one WebGL moment | `references/scroll-story-patterns.md` |
| Timing/easing decisions, which library to reach for | `references/animation-framework.md` |
| 17 copy-paste recipes (stagger, counter, toast, marquee…) | `references/animation-recipes.md` |
| motion.*, AnimatePresence, variants, layoutId, springs | `references/motion.md` |
| Finger-driven motion — springs by feel, velocity handoff, momentum projection, rubber-banding, grab offset, native-feel gesture details | `references/native-motion-physics.md` |
| All 12 GSAP plugins, useGSAP, timelines | `references/gsap.md` |
| Scroll-driven patterns, parallax, pinning | `references/scroll-experience.md` |
| Smooth/momentum scroll — Lenis options, RAF loop, GSAP ticker handoff, reduced-motion gating | `references/lenis-smooth-scroll.md` |
| React View Transition API, CSS recipes, Next.js integration | `references/view-transitions.md` |
| An animation that renders wrong — seekability, font-load measurement, `zoom` vs `scale` text blur, flattened `preserve-3d`, missing glyphs | `references/animation-pitfalls.md` |
## Constraints
`MOTION-01` reduced-motion is functional, not a string mention · `MOTION-02` no bare `ease-in` in entrance context · `PERF-04` no `transition: all` · duration 80–600ms (800ms page transitions) · no infinite animation without user control · transform/opacity only · OKLCH tokens · TypeScript strict.
Files in this package (26)
- SKILL.md 6 KB
- examples/_r3f-jsx.d.ts 2 KB
- examples/_stubs.d.ts 4 KB
- examples/bad-animated.tsx 8 KB
- examples/good-anim-recipes.test.tsx 1 KB
- examples/good-anim-recipes.tsx 27 KB
- examples/good-scroll.test.tsx 1 KB
- examples/good-scroll.tsx 14 KB
- examples/good-view-transitions.test.tsx 1 KB
- examples/good-view-transitions.tsx 14 KB
- examples/good-vt-shared-element.test.tsx 2 KB
- examples/good-vt-shared-element.tsx 7 KB
- references/animation-framework.md 18 KB
- references/animation-pitfalls.md 11 KB
- references/animation-recipes.md 22 KB
- references/finding-motion.md 9 KB
- references/gsap.md 16 KB
- references/interaction-patterns.md 30 KB
- references/lenis-smooth-scroll.md 5 KB
- references/motion-budget.md 8 KB
- references/motion-direction.md 9 KB
- references/motion.md 39 KB
- references/native-motion-physics.md 12 KB
- references/scroll-experience.md 9 KB
- references/scroll-story-patterns.md 22 KB
- references/view-transitions.md 15 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · krishna-modi12/frontend-design-pro | 100 | MIT |
| mthines/agent-skills | 100 | MIT |
| verygoodopensource/vgv-ai-flutter-plugin | 100 | MIT |
| PIXARTSeu/Synapse | 100 | AGPL-3.0 |
| phaserjs/phaser | 100 | MIT |
Database snapshot: 13.11.2026 · package version c9beb2eff6bf (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100animation-motion-design
Animation patterns with Motion (formerly Framer Motion) and the View Transitions API. Use when implementing component animations, page transitions, micro-interactions, gesture-driven UIs, or prefers-reduced-motion support. - 100motion-design
Applies motion design principles to create emotionally-driven, technically sound animations and transitions. Provides timing, easing, choreography, and Disney animation principles adapted for UI. Use when creating animations, transitions, micro-interactions, loading states, page… - 100motion-design
UI animation and micro-interactions in CSS/JS: duration and easing tokens, hover/press feedback, page and view transitions, scroll-driven reveals, loaders, staggering, reduced-motion handling, and performance. Use for motion in web/app interfaces (not video or animated image… - 90framer-motion-animator
Creates smooth animations and micro-interactions using Framer Motion including page transitions, gestures, scroll-based animations, and orchestrated sequences. Use when users request "add animation", "framer motion", "page transition", "animate component", or "micro-interactions". - 100animation-recipe-library
200+ copy-paste animation recipes in CSS, Framer Motion, and GSAP: entrances, micro-interactions, page transitions, scroll-driven effects, spring physics, and cursor and text effects, each with timing, easing, and a reduced-motion fallback. Use when you need working motion code… - 100react-animations
Use when implementing animations, transitions, or motion effects in React apps. Invoke this skill whenever someone asks about animation, transition, motion, framer motion, react spring, GSAP, entrance/exit effects, scroll animation, parallax, gesture, drag, card flip, screen…