NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #4107 most downloaded on npm
A simple and powerful JavaScript animation library
Latest stable
14.14.0
Last release 9 days ago
13 Nov 2026
Ships fairly regularly
a new release about every 9 days
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
1424 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
useDragControls allows imperative initiation of a drag gesture.
useDragControls allows imperative initiation of a drag gesture.Updated transformTemplate to provide an empty string if all transform values are default.
transformTemplate to provide an empty string if all transform values are default.Changed definition of staggerDirection from 1 | -1 to number to reduce the need for casting externally-defined types.
staggerDirection from 1 | -1 to number to reduce the need for casting externally-defined types.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Added support for TargetResolver in exit types.
TargetResolver in exit types.onAnimationStart from forwarded props.Support for prefers-reduced-motion via the useReducedMotion hook.
prefers-reduced-motion via the useReducedMotion hook.Various StrictMode-related bugs including layoutTransition origin calculation.
StrictMode-related bugs including layoutTransition origin calculation.useEffect to allow render-triggered animations a chance to start (thereby blocking the application of constraints).controls.set can now accept a function that will resolve once for each child.
controls.set can now accept a function that will resolve once for each child.Fixing ref hydration in useLayoutEffect. (Note: This release effectively reverts 1.6.10. Each child of AnimatePresence with a unique key should be giv
ref hydration in useLayoutEffect. (Note: This release effectively reverts 1.6.10. Each child of AnimatePresence with a unique key should be given a unique ref).use-drag and use-pan-gesture to a useEffect.### Added - Quick start section to README.
Making position change detection more intelligent.
Fixing undefined this.props error for AnimatePresence.exitBeforeEnter.
this.props error for AnimatePresence.exitBeforeEnter.Support strings in motion.custom for Web Component support.
motion.custom for Web Component support.Fixing the use of externally-provided refs with single-child AnimatePresence components.
refs with single-child AnimatePresence components.### Fix - Exit variant propagation. - Cancelling exit animations.
Fixed exit animation when animate={useAnimation()}.
animate={useAnimation()}.stylefire@6.0.11 to fix clipPath in Webkit.motion.custom to accept custom prop types.inherit public API.Restoring React-style behaviour for transform style properties when a component isStatic.
style properties when a component isStatic.Adding @emotion/is-prop-valid as an optional dependency to ensure we filter out arbitrary props passed along by Emotion and Styled Components.
@emotion/is-prop-valid as an optional dependency to ensure we filter out arbitrary props passed along by Emotion and Styled Components.### Fix - Value-specific delay.
delay.### Upgrade - stylefire@6.0.10
stylefire@6.0.10Ensuring onDragEnd always fires after if onDragStart fired.
onDragEnd always fires after if onDragStart fired.### Fixed - Invalid property in SVGs.
Making useInvertedScale public and changing const to function.
useInvertedScale public and changing const to function.EventInfo now passed as second argument to onHoverStart and onHoverEnd.
layoutTransitionEventInfo now passed as second argument to onHoverStart and onHoverEnd.useDomEvent hook for attaching events directly to an Element.animate.transitionEnd if not initial animation.useInvertedScale is provided arguments.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
useInvertedScale for inverting parent scales.
useInvertedScale for inverting parent scales.positionTransition on exiting components within AnimatePresence.
positionTransition on exiting components within AnimatePresence.Pan and drag gestures with PointerEvent.
PointerEvent.AnimatePresence.exitBeforeEnter.
AnimatePresence.exitBeforeEnter.AnimatePresence.tslib as an external dependency.onAnimationComplete.- Added onAnimationStart. ### Fixed
onAnimationStart.Make sure select, input, textarea loose focus when blocking default behaviour in a draggable element.
select, input, textarea loose focus when blocking default behaviour in a draggable element.Value type conversion for currently-hidden elements.
useAnimation() when the parent component has no variants prop set.whileHover and whileTap if they contain transitionEnd values.animate as set by their parent.stylefire to gracefully handle transform requests.Improving types for SVGTextElement components.
isValidMotionProp function.SVGTextElement components.Don't load positionTransition functionality component server-side.
positionTransition functionality component server-side.### Upgrade - Typescript to 3.5.
3.5.Removing re-entering children from exiting list in AnimatePresence.
AnimatePresence.Supporting positionTransition as a function that resolves when the component has moved.
positionTransition as a function that resolves when the component has moved.dragOriginX and dragOriginY props.positionTransition from SVG type.Exporting AnimatePresenceProps.
AnimatePresenceProps.Fixing positionTransition on server-side.
positionTransition on server-side.Upgrade to AnimatePresence algo.
AnimatePresence algo.Moving UMD global from FramerMotion to Motion.
FramerMotion to Motion.@emotion/is-valid-prop, saving ~1.9kb from bundle.async markers, saving ~0.7kb from bundle.drag and pan gestures on component unmount.animate animate correctly.onAnimationComplete when while overrides are unset.animate is a map of props and initial={false}. This went previously unseen as both values were equivalent, but onAnimationComplete would fire on mount.AnimatePresence component for controlling mount/unmount animations.
AnimatePresence component for controlling mount/unmount animations.positionTransition prop for animating when the layout of a component changes.Moving SVG path props to MotionStyle type.
MotionStyle type.MakeMotion to accept either MotionValue<string> OR MotionValue<number>.Moving dragConstraints to a ref if a component re-renders mid gesture.
dragConstraints to a ref if a component re-renders mid gesture.dragConstraints on render if component isn't currently dragging.Making when type more permissive for passing in implicitly typed, pre-defined variants.
when type more permissive for passing in implicitly typed, pre-defined variants.select, input, textarea elements.Fixing useSpring unsubscriptions.
useSpring unsubscriptions.### Added - Improved SVG support.
Ensuring each MotionValue receives one MotionValuesMap update subscriber.
MotionValue receives one MotionValuesMap update subscriber.Adding x/y MotionValues to the useDrag dependency list.
x/y MotionValues to the useDrag dependency list.Allowing SVG motion components to accept MotionValues via attributes.
motion components to accept MotionValues via attributes.Target.initial={false} to shadow contents of animate thereby disabling on mount animation.
initial={false} to shadow contents of animate thereby disabling on mount animation.AnimationControls.set for imperative setting of values.delay to ensure velocity is only resolved as an animation begins on a value.stylefire@5.0.0 - Changes originX/Y default to "50%".
stylefire@5.0.0 - Changes originX/Y default to "50%".Production and prototype environment-specific tsdocs.
Properly cleaning up event listeners in tap gesture.
transformPagePoint to dragConstraints when it's a RefObject<Element> to ensure it works in scaled environments.dragElastic behaviour when dragMomentum={false}.Preventing default browser behaviours on draggable elements.
Fixing drag when a multitouch gesture starts.
One column per quarter.