framer-motion
14.7.1 · 27 Oct 2026MIT45.3M / weekRepositoryHomepagenpmAtom feed
2.9.5 is the newest release of 2.x.
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)