framer-motion

Solid

Framer Motion / Motion sub-skill - AnimatePresence, layout animations, gestures, motion values.

Web & Frontend 115 stars 14 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
69
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Framer Motion — Sub-skill > Package: `motion` (v11+, formerly `framer-motion`). Import: `import { motion, AnimatePresence } from "motion/react"` ## When to use Framer Motion vs alternatives | Criteria | Framer Motion | GSAP | Native CSS | |---------|--------------|------|-----------| | Layout animations | Excellent (layoutId) | Manual | Impossible | | Exit animations | AnimatePresence | Timeline reverse | Limited (display) | | Gestures (drag, hover) | Native, declarative | Draggable plugin | Basic | | Scroll-driven | useScroll + useTransform | ScrollTrigger (more powerful) | scroll-timeline | | Complex orchestration | Variants + propagation | Timeline (more flexible) | @keyframes | | Bundle size | ~50kb tree-shaken | ~30kb core | 0kb | | React integration | Native, component-first | Refs + useGSAP | className toggle | **Rule**: Framer Motion for React UI interactions (modals, toasts, reorder, shared layout). GSAP for complex timelines, cinematic scroll-driven, SVG morphing. ## AnimatePresence — Exit animations ```tsx <AnimatePresence mode="wait"> {isVisible && ( <motion.div key="unique-key" // REQUIRED — identifies the component initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} /> )} </AnimatePresence> ``` - `mode="wait"` — waits for exit to finish before enter (page transitions) - `mode="sync"` — exit and enter simultaneously - `mode="popLayout"` — removes from flow immediately (good for lists) - `onEx...

Details

Author
AThevon
Repository
AThevon/genjutsu
Created
4 months ago
Last Updated
3 days ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Web & Frontend Listed

motion-react

Framer Motion (now "Motion") for React — component animation, gestures, exit transitions, and shared-element layout. Use when animating React components, adding whileHover/whileTap/drag gestures, animating mount/unmount with AnimatePresence, building shared-element transitions with layoutId, or importing from framer-motion in a React codebase. Triggers on "animate this component", "framer motion", "motion.div", "AnimatePresence", "shared element transition", "drag gesture in React".

0 Updated yesterday
BenMacDeezy
AI & Automation Listed

motion-framer

Modern animation library for React and JavaScript. Create smooth, production-ready animations with motion components, variants, gestures (hover/tap/drag), layout animations, AnimatePresence exit animations, spring physics, and scroll-based effects. Use when building interactive UI components, micro-interactions, page transitions, or complex animation sequences.

1 Updated 3 days ago
NafisRayan
Web & Frontend Solid

design-motion

Design and implement purposeful motion — micro-interactions, page transitions, scroll animations, and hover effects — using Framer Motion, CSS animations, and GSAP. Use when the user says "add animation", "make it feel alive", "micro-interaction", "page transition", "scroll animation", "hover effect", or "motion design". Outputs performance-safe, reduced-motion-aware animation code. Pairs with design-frontend, enhance-web-ui. Do NOT use for layout, typography, or purely functional UI work.

6 Updated 2 days ago
kensaurus