SKILL.md
$2a
Motion Values
Topic
Description
Reference
useMotionValue
Create and use motion values for reactive animations
useSpring
Spring-based motion values with physics
useTransform
Transform motion values with functions
useMotionTemplate
Combine motion values into a string (e.g. filter, boxShadow)
useFollowValue
Motion value that follows a source with any transition
useScroll
Scroll-linked motion values and animations
useVelocity
Access velocity of motion values
useTime
Time-based motion values
useWillChange
GPU layer hint for animating elements
Gestures
Topic
Description
Reference
Drag
Drag gestures with constraints and controls
Pan
Pan gestures for touch and pointer events
Tap & Press
Tap and press gesture handlers
Hover & Focus
Hover and focus state animations
Layout Animations
Topic
Description
Reference
AnimatePresence
Animate components entering and exiting
usePresence / useIsPresent
Access presence state in AnimatePresence children
usePresenceData
Read AnimatePresence custom prop in descendants
LayoutGroup
Coordinate layout animations across components
Layout Animations
Automatic layout animations with layoutId
Reorder
Drag-to-reorder with layout animations
useInstantLayoutTransition
Block layout update for one frame
useResetProjection
Reset layout projection tree after structural change
Features
Topic
Description
Reference
In View
useInView, inView(), usePageInView for viewport/visibility
Resize
resize() observer for window or element size
Optimized Appear
SSR-friendly appear animations with handoff
SVG Path
pathLength, pathOffset, pathSpacing for path animations
motion/client
Next.js "use client" and tree-shakable components
Utils
Topic
Description
Reference
useReducedMotion
Hooks for reduced motion preference
useAnimationFrame
Frame-synced callback with Motion's loop
useCycle
Cycle through a list of states
useMotionValueEvent
Subscribe to motion value events
delay
Frame-synced delayed execution
interpolate
Map input range to output
useDomEvent
Attach DOM event listeners
useInstantTransition
Block layout animations during update
calcLength / createBox / distance
Projection geometry and distance
Advanced
Topic
Description
Reference
Animation Controls
Programmatic animation control with useAnimation
useAnimate
Imperative animation API
LazyMotion
Code-split animations for better performance
MotionConfig
Global configuration and reduced motion
Scroll Animations
Scroll-linked animations and parallax effects
transformTemplate
Custom transform output
addScaleCorrector
Layout projection scale correctors
Best Practices
Topic
Description
Reference
Bundle Size
Entry points and optimization strategies