Skip to content
motion logo

Motion

motion

Motion animation library for JavaScript, React and Vue. Use when creating animations, gestures, layout transitions, scroll-linked effects, or working with motion values and animation controls.

hairyf/skills821installs25starsDesign & UI/UX

SKILL.md

Full skill instructions

Motion is an open-source animation library for JavaScript, React, and Vue. It provides a simple API with first-class support for multiple platforms, a hybrid animation engine combining JavaScript with native browser APIs for 120fps GPU-accelerated animations, and production-ready features including TypeScript support, extensive test suite, tree-shakable builds, and a tiny footprint. Batteries included: gestures, springs, layout transitions, scroll-linked effects, and timelines.

The skill is based on Motion v12.29.2, generated at 2026-02-01.

Core References

TopicDescriptionReference
Motion ComponentsBasic motion components (motion.div, motion.svg, etc.)core-components
Basic Animationanimate prop, initial, while statescore-animation
JavaScript animate()Vanilla animate(), sequences, createScopedAnimatecore-javascript-animate
Vanilla scroll()Imperative scroll() and scrollInfo() for non-Reactcore-vanilla-scroll
motionValueCreate MotionValues without Reactcore-vanilla-motion-value
staggerOrchestrate child delays in variantscore-stagger
frame / cancelFrameMotion's animation loopcore-frameloop
motion/​miniMinimal bundle entrycore-motion-mini
VariantsDeclarative animation variants and orchestrationcore-variants
TransitionsAnimation timing, easing, spring physicscore-transitions

Motion Values

TopicDescriptionReference
useMotionValueCreate and use motion values for reactive animationsvalues-motion-value
useSpringSpring-based motion values with physicsvalues-spring
useTransformTransform motion values with functionsvalues-transform
useMotionTemplateCombine motion values into a string (e.g. filter, boxShadow)values-motion-template
useFollowValueMotion value that follows a source with any transitionvalues-follow
useScrollScroll-linked motion values and animationsvalues-scroll
useVelocityAccess velocity of motion valuesvalues-velocity
useTimeTime-based motion valuesvalues-time
useWillChangeGPU layer hint for animating elementsvalues-will-change

Gestures

TopicDescriptionReference
DragDrag gestures with constraints and controlsgestures-drag
PanPan gestures for touch and pointer eventsgestures-pan
Tap & PressTap and press gesture handlersgestures-tap-press
Hover & FocusHover and focus state animationsgestures-hover-focus

Layout Animations

TopicDescriptionReference
AnimatePresenceAnimate components entering and exitinglayout-animate-presence
usePresence / useIsPresentAccess presence state in AnimatePresence childrenlayout-use-presence
usePresenceDataRead AnimatePresence custom prop in descendantslayout-presence-data
LayoutGroupCoordinate layout animations across componentslayout-group
Layout AnimationsAutomatic layout animations with layoutIdlayout-animations
ReorderDrag-to-reorder with layout animationslayout-reorder
useInstantLayoutTransitionBlock layout update for one framelayout-instant-transition
useResetProjectionReset layout projection tree after structural changelayout-reset-projection

Features

TopicDescriptionReference
In ViewuseInView, inView(), usePageInView for viewport/​visibilityfeatures-in-view
Resizeresize() observer for window or element sizefeatures-resize
Optimized AppearSSR-friendly appear animations with handofffeatures-optimized-appear
SVG PathpathLength, pathOffset, pathSpacing for path animationsfeatures-svg-path
motion/​clientNext.js "use client" and tree-shakable componentsfeatures-react-client

Utils

TopicDescriptionReference
useReducedMotionHooks for reduced motion preferenceutils-reduced-motion
useAnimationFrameFrame-synced callback with Motion's looputils-animation-frame
useCycleCycle through a list of statesutils-cycle
useMotionValueEventSubscribe to motion value eventsutils-motion-value-event
delayFrame-synced delayed executionutils-delay
interpolateMap input range to outpututils-interpolate
useDomEventAttach DOM event listenersutils-dom-event
useInstantTransitionBlock layout animations during updateutils-instant-transition
calcLength / createBox / distanceProjection geometry and distanceutils-path-geometry

Advanced

TopicDescriptionReference
Animation ControlsProgrammatic animation control with useAnimationadvanced-animation-controls
useAnimateImperative animation APIadvanced-use-animate
LazyMotionCode-split animations for better performanceadvanced-lazy-motion
MotionConfigGlobal configuration and reduced motionadvanced-motion-config
Scroll AnimationsScroll-linked animations and parallax effectsadvanced-scroll-animations
transformTemplateCustom transform outputadvanced-transform-template
addScaleCorrectorLayout projection scale correctorsadvanced-scale-corrector

Best Practices

TopicDescriptionReference
Bundle SizeEntry points and optimization strategiesbest-practices-bundle

More Design & UI/UX skills

gpt-taste logo
Design & UI/UX

gpt-taste

gpt taste

92.7K 355.7K
View
brandkit logo
Design & UI/UX

brandkit

Premium brand-kit image generation for high-end identity systems, logo concepts, and visual-world presentations.

92.7K 345.8K
View
image-to-code logo
Design & UI/UX

image-to-code

Premium website design-to-code skill that generates visual references first, then builds faithful frontend implementations.

92.7K 341.7K
View
imagegen-frontend-web logo
Design & UI/UX

imagegen-frontend-web

Premium frontend image direction for landing pages and marketing sites, generating one distinct horizontal image per section.

92.7K 337.8K
View

Premium mobile app screen concepts and flows with clean hierarchy, strong imagery, and distinctive art direction.

92.7K 331.8K
View

Emil Kowalski's philosophy on UI polish, component design, and the invisible details that make software feel good.

43.5K 323.4K
View
impeccable logo
Design & UI/UX

impeccable

Frontend design and iteration for production-grade interfaces, from concept to ship.

76.8K 313.3K
View
extract-design-system logo
Design & UI/UX

extract-design-system

Reverse-engineer design tokens from public websites into starter token files for your project.

232 129.9K
View
Animate logo
Design & UI/UX

Animate

Builds an animation from scratch by making the decisions in the order that determines whether it feels right.

43.5K 117.9K
View
canvas-design logo
Design & UI/UX

canvas-design

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

179.7K 114.2K
View
brand-guidelines logo
Design & UI/UX

brand-guidelines

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View
theme-factory logo
Design & UI/UX

theme-factory

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

Design AI tools

Maze Guru logo
Images

Maze Guru

Chat-to-edit AI studio for product photos, portraits, branding, and video.

Freemium
View
R
Design

RoomGPT

Generate your dream room in seconds.

Paid
View

Redesign your interior in seconds using AI

Paid
View
Reroom logo
Design

Reroom

Transform rooms with AI-generated designs.

Freemium
View
Jife logo
Design

Jife

Transform Your Space with AI-Powered Japanese Interior Designs by Jife

Paid
View
Visily logo
Design

Visily

AI-powered wireframes for non-designers.

Free
View

Revolutionize Property Viewing with AI-Generated Floor Plans and Virtual Tours

Paid
View
Archsynth logo
Design

Archsynth

Transform sketches into stunning architectural renders with AI.

Paid
View