motion
14.14.0 · 13 Nov 2026MIT38.5M / weekRepositoryHomepagenpmAtom feed
In short
5 breaking5 new1 fixed4 changed
- Breaking
positionTransitionandlayoutTransitionprops (uselayout={true}instead). - Breaking
Pointtype in favour ofPoint2D. - Breaking
useAnimatedState: Moved to Framer library. - Breaking
dragOriginX,dragOriginYprops. - Breaking
stylefireas a dependency.
Release note
Added
layoutprop for automatic layout animations.AnimateSharedLayoutandlayoutIdfor shared layout animations.onMeasureDragConstraintsprop that fires whendragConstraintsare measured.useIsPresent, a read-only version ofusePresence.Allow
dragConstraintsto be a ref that is smaller than the draggable element.
Removed
- Breaking
positionTransitionandlayoutTransitionprops (uselayout={true}instead). - Breaking
Pointtype in favour ofPoint2D. - Breaking
useAnimatedState: Moved to Framer library. - Breaking
dragOriginX,dragOriginYprops. - Breaking
stylefireas a dependency.
Fixed
Removing a
MotionValuefromstylenow correctly unsets it from the element.
Changed
Using
Proxyto generatemotioncomponents. This saves ~0.5kb from the bundle size and ensures compatibility with all DOM elements and Web Components.xandytransform values won't change as a result of a drag gesture as this now works via layout projection.Drag events now report
pointas the pointer relative to the viewport, in line with other pointer events.Changed build process and using Terser for uglification. Reduces bundle size by ~1.2kb. (@stokesman in #596)
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.