unstale

npm / motion

motion

What changed in motion 7 to 14, from its official release notes, upgrade guides and advisories. Also covers framer-motion. Sources checked 2026-11-30.

13 breaking67 new APIs and options25 performance15 behavior and defaults1 tooling183 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

motion 1497 changes

Breaking changes 2

  • onExitComplete now fires after exiting children unmount.

    14.3.1release notes

  • Internal APIs restored in 13.5.1 for compatibility with framer-motion 13.0–13.4 were removed.

    14.0.0release notes

New APIs and options 26

  • A mass: "auto" setting makes spring mass size-relative.

    14.13.0release notes

  • Configure the transform origin between an element-relative origin and the pointer center.

    14.11.1release notes

  • Adds multitouch pinch and rotate gestures.

    14.11.0release notes

  • Adds the x prop for headless gesture tracking.

    14.10.0release notes

  • Adds the y prop for headless gesture tracking.

    14.10.0release notes

  • Exposes getProps on the dragConstraints function context.

    14.10.0release notes

  • Adds a tap prop for configuring the press gesture.

    14.10.0release notes

  • Adds count for configuring double and triple press gestures.

    14.10.0release notes

  • Adds hold for configuring long press gestures.

    14.10.0release notes

  • Adds repeat for configuring multipress gestures.

    14.10.0release notes

  • The transition API adds a mixer option for passing custom mixer functions.

    14.8.0release notes

  • Timeline sequences now support relative label offsets.

    14.7.0release notes

  • A LazyMotion-compatible import is now available for Reorder.

    14.7.0release notes

  • useScroll now returns scrollXLength.

    14.7.0release notes

  • useScroll now returns scrollYLength.

    14.7.0release notes

  • The transition.out prop lets transitions be specified when exiting a state.

    14.7.0release notes

  • Allows manually processing the frameloop at a specified time.

    14.6.0release notes

  • Adds grab-and-move keyboard reordering.

    14.6.0release notes

  • Allows synchronously advancing frameloop time by a duration for tests.

    14.6.0release notes

  • Pass moved to onReorder as a second argument.

    14.5.0release notes

  • Scope animations and gestures to set default transitions, specify root elements, match media, and enable easy cleanup.

    14.5.0release notes

  • A drag gesture was added to the JavaScript API.

    14.4.0release notes

  • Adds support for scaleZ.

    14.3.0release notes

  • Adds the edges and random values for the from option.

    14.3.0release notes

  • Adds the grid option to stagger.

    14.3.0release notes

  • Adds layout animations for vanilla JS.

    14.1.0release notes

Performance 6

Behavior and default changes 5

  • For spring transitions, visualDuration and bounce now respect velocity.

    14.12.0release notes

  • Snap points use velocity-based prediction to calculate the rotation snap point.

    14.11.1release notes

  • Home and End buttons move the selected item to the beginning and end of the list, respectively.

    14.10.0release notes

  • Keyboard accessibility now focuses only the first item; arrow keys move focus and work in relation to how items are presented on-screen.

    14.9.0release notes

  • Timeline sequences can now be mutable.

    14.7.0release notes

Fixes and other changes 58

  • Fixes an async hydration blink in LazyMotion.

    14.14.0release notes

  • Starting drag during a snap animation no longer breaks the animation.

    14.13.0release notes

  • Animated layers now preserve spring velocity.

    14.13.0release notes

  • Fixes recognition of a timeline consisting only of nested sequences.

    14.10.1release notes

  • Includes minor fixes to animate.

    14.10.0release notes

  • Accelerated animations are now cleaned up in WebKit.

    14.9.1release notes

  • Accelerated transform animations now finish correctly.

    14.9.1release notes

  • Fixes exit animations not starting when a child mounts already exiting.

    14.9.1release notes

  • Fixes exit animations getting stuck after an open layoutId card switches to another item.

    14.9.1release notes

  • Fixes accelerated animations getting stuck at initial after a remount.

    14.8.0release notes

  • The drag feature is 20% smaller.

    14.8.0release notes

  • Projection stats are counted only while recordStats() is running.

    14.8.0release notes

  • Timeline adjustments are kept within timeline scope.

    14.8.0release notes

  • Transforms are demoted to CPU when interrupted by layout animations.

    14.7.1release notes

  • Fixes a flash when changing playback speed.

    14.7.0release notes

  • Positioning of popped elements is improved.

    14.7.0release notes

  • Animations move back to the main thread for improved interpolation.

    14.7.0release notes

  • Ref constraints stay up to date after scrolling.

    14.7.0release notes

  • Drag inertia no longer stops dead after a fast flick from a standstill.

    14.7.0release notes

  • Elements with layoutId animate relative to their closest layoutRoot ancestor, if any.

    14.7.0release notes

  • layoutId may now be changed after mount.

    14.7.0release notes

  • Overdamped springs no longer snap to the target.

    14.7.0release notes

  • Tracking in horizontal containers is fixed.

    14.7.0release notes

  • Fixes animations when drag is disabled from within onDrag.

    14.6.0release notes

  • Fixes layoutId elements jumping in some situations.

    14.6.0release notes

  • Fixes replaying a mount animation when an element takes over a layoutId.

    14.6.0release notes

  • Makes auto-scroll speed independent of refresh rate.

    14.6.0release notes

  • Prevents an element's own scale, x, and y from being applied twice.

    14.6.0release notes

  • Fixes updating SVG styles.

    14.6.0release notes

  • Improves value resolution.

    14.6.0release notes

  • With direction lock, the move that sets the lock is now applied, so a fast drag released in that frame moves.

    14.5.0release notes

  • Ensures animations use the latest props when a parent Activity is made visible.

    14.5.0release notes

  • Cleanup of keyboard accessibility events is improved.

    14.5.0release notes

  • Stops double-counting window scroll during drag.

    14.5.0release notes

  • Observes ref when its contents change after mount.

    14.5.0release notes

  • Interpolation of axis rotate transforms during shared layout animation is fixed.

    14.3.1release notes

  • Interpolation of axis skew transforms during shared layout animation is fixed.

    14.3.1release notes

  • Fires onExitComplete after exiting children unmount.

    14.3.0release notes

  • popLayout children that do not accept ref are now popped when the root component is a motion element.

    14.3.0release notesrelease notes

  • Fixes path animations with animate.

    14.3.0release notesrelease notes

  • Fixes drag jumping to 0 after animate x or y to a CSS variable.

    14.3.0release notesrelease notes

  • Fixes accelerated independent transform animations vanishing when they start from a float residue.

    14.3.0release notesrelease notes

  • Fixes layout animations when layout is enabled after mount.

    14.3.0release notesrelease notes

  • Fixes matrix3d and other digit-named transform functions being tokenised as numbers.

    14.3.0release notes

  • Fixes SVG MotionValue children being written as a children attribute.

    14.3.0release notes

  • Fixes interpolation of axis rotate and skew transforms during shared layout animation.

    14.3.0release notes

  • Ensures shared elements are freed from memory when unmounted.

    14.3.0release notesrelease notes

  • When switching targets, useSpring now animates to the new target on switch.

    14.3.0release notes

  • Makes cubicBezier more accurate and 2x faster.

    14.1.1release notes

  • Fixes velocity hand-off for hardware-accelerated springs.

    14.1.1release notes

  • Fixes click events on reordered items.

    14.1.1release notes

  • Fixes desynchronization when the source is set in an effect under Strict Mode.

    14.1.1release notes

  • Fixes JS animations jumping ahead when played after a pause at non-1 speed.

    14.1.0release notes

  • Fixes popLayout when rendering into another window or iframe.

    14.1.0release notes

  • Animation start is delayed when the main thread is held, preventing visual jumps.

    14.1.0release notes

  • Layout animations are now allowed inside dragged elements.

    14.1.0release notes

  • Fixes reporting of elastic overscroll.

    14.1.0release notes

  • Fixes these interactions getting stuck after Fast Refresh reorders siblings.

    14.1.0release notes

motion 1354 changes

Breaking changes 4

  • ScrollTimeline support for JS callbacks was removed because benchmarks showed no improvement over scrollInfo.

    13.4.4release notes

  • The useDefaultValueType argument is no longer accepted by set().

    13.2.0release notes

  • The optional dependency was removed in favour of explicitly providing isPropValid through MotionConfig.

    13.0.0release notes

  • Use isValidProp to provide prop validation explicitly, replacing the optional @emotion/is-prop-valid dependency.

    13.0.0release notes

New APIs and options 10

  • spring accepts negative bounce values from 0 to -1 to define overdamped springs.

    13.5.0release notes

  • Adds view transitions for React 19.3, built on React's ViewTransition.

    13.4.0release notes

  • Hooks for Motion Editor were added.

    13.3.0release notes

  • Register effects that let animate drive non-DOM subjects alongside DOM elements.

    13.2.0release notes

  • Adds the read option.

    13.2.0release notes

  • Adds the step option.

    13.2.0release notes

  • Adds the test option.

    13.2.0release notes

  • Exposes bound motion values through effect.get().

    13.2.0release notes

  • Adds support for animating Three.js objects, materials, shader uniforms, TSL uniform nodes and more.

    13.2.0release notes

  • Adds support for shared uniforms, bindings, scene nodes, cameras, lights, materials, orbit controls, CSS colors and vector components.

    13.2.0release notes

Performance 12

Behavior and default changes 4

Fixes and other changes 24

  • When computed style is empty, SVG value reading falls back to the attribute.

    13.5.1release notes

  • Setting inherit={false} now correctly prevents inheriting parent animations.

    13.5.1release notes

  • The removal of the internal API was temporarily reverted to restore compatibility with previous 13.x APIs.

    13.5.1release notes

  • Cleaning up an earlier value no longer removes a value bound to the same key afterward.

    13.5.1release notes

  • Transforms and origins are no longer written as attributes.

    13.5.1release notes

  • warning and error messages are cleaned from production builds.

    13.5.0release notes

  • Values are never rendered before they have been resolved.

    13.5.0release notes

  • In mode="wait", new children are no longer dropped if exit completes during a React transition.

    13.4.5release notesrelease notes

  • Fixes relative child jumping when a parent interrupts a layout animation.

    13.4.5release notes

  • Only clears the reorder guard when values change.

    13.4.5release notes

  • The spring is 5% smaller.

    13.4.5release notes

  • Children no longer stick during reentry.

    13.4.4release notes

  • Improved pointerend timing.

    13.4.4release notes

  • Invalid spring values are checked before being applied.

    13.4.4release notes

  • Fixed origin drift when snapToCursor is used on repeated calls.

    13.4.4release notes

  • Animations replay when Suspense reveals memoized content.

    13.4.3release notes

  • Unrecognised easing names no longer throw.

    13.4.2release notes

  • Changing dragConstraints no longer scales the position of elements at origin 0.

    13.4.2release notes

  • CSS variable writes on SVGs now apply to the style attribute.

    13.4.1release notes

  • Path drawing calculations were fixed.

    13.3.0release notes

  • Compatibility with React 19 strict mode is improved.

    13.1.1release notes

  • Animation window access is guarded in non-browser runtimes.

    13.1.1release notes

  • Nodes are marked as safe to remove when rendering with propagate and no motion children.

    13.0.0release notes

  • Final styles are now correctly applied when an animation completes.

    13.0.0release notes

motion 12152 changes

Breaking changes 7

  • Passing a custom motion component an incorrect ref type now throws an error.

    12.43.0release notes

  • Automatic border-radius animation is disabled.

    12.42.0release notes

  • Group layers automatically crop with children set to cover and animate border-radius from its old to new value; .crop(false) disables this.

    12.41.0release notes

  • .enter() now refers specifically to the new layer when there is no matching old layer.

    12.41.0release notes

  • .exit() now refers specifically to the old layer when there is no matching new layer.

    12.41.0release notes

  • The whileHover state no longer persists after a drag ends.

    12.31.2release notes

  • Removes the default value type from radius.

    12.28.2release notes

New APIs and options 31

  • The new group(false) method opts out of automatic layer grouping.

    12.42.0release notes

  • .add() resolves a CSS selector or Element and automatically generates, applies, and removes view-transition-name.

    12.41.0release notes

  • .class(name) tags currently selected elements with a view-transition-class for use as a custom CSS hook.

    12.41.0release notes

  • .layout() sets a custom transition on the size and position animation of currently selected elements.

    12.41.0release notes

  • .new() configures values to animate on new layers.

    12.41.0release notes

  • .old() configures values to animate on old layers.

    12.41.0release notes

  • Adds arc() for motion along an arc.

    12.40.0release notes

  • Adds the path option to transition.

    12.40.0release notes

  • Animation sequences now support repeatDelay.

    12.39.0release notes

  • Animation sequences now support repeatType.

    12.39.0release notes

  • Added a prop to configure the custom anchor point used to resolve relative projection boxes.

    12.38.0release notes

  • The color color type is supported.

    12.37.0release notes

  • The color-mix color type is supported.

    12.37.0release notes

  • The lab color type is supported.

    12.37.0release notes

  • The lch color type is supported.

    12.37.0release notes

  • The light-dark color type is supported.

    12.37.0release notes

  • The oklab color type is supported.

    12.37.0release notes

  • The oklch color type is supported.

    12.37.0release notes

  • Can now accept "x" or "y" to snap to the origin on only one axis.

    12.36.0release notes

  • Supports axis-locked layout animations with layout="x" and layout="y".

    12.36.0release notes

  • Added as an option to useSpring to skip the initial animation.

    12.36.0release notes

  • scroll now supports ViewTimeline.

    12.35.0release notes

  • Adds a prop that prevents tap gestures from propagating to parents.

    12.33.0release notes

  • The new inherit option lets a transition inherit values from less-specific transitions when set to true.

    12.32.0release notes

  • Supports bi-directional callbacks within animation sequences.

    12.31.0release notes

  • Adds the skipAnimations option to MotionConfig.

    12.30.0release notes

  • Adds an option to scroll and useScroll for tracking changes to content size.

    12.29.0release notes

  • Scale drag gestures within SVG elements when the viewBox and rendered width/height are mismatched.

    12.29.0release notes

  • Adds anchorY for vertically positioning popped children.

    12.27.4release notes

  • useTransform now supports multiple output value maps.

    12.26.0release notes

  • Adds the svg option for creating custom SVG components.

    12.24.0release notes

Performance 7

  • Supported browsers now hardware-accelerate backgroundColor.

    12.43.0release notes

  • SVG elements are now hardware-accelerated.

    12.43.0release notes

  • Reduced memory pressure from layout animations.

    12.37.0release notes

  • Hardware acceleration is supported for start and end offsets in scroll.

    12.37.0release notes

  • Hardware acceleration is supported for start and end offsets in useScroll.

    12.37.0release notes

  • Reduced the filesize of styleEffect.

    12.35.2release notes

  • useScroll animations are hardware accelerated.

    12.34.0release notes

Behavior and default changes 6

  • Layers are now automatically grouped to match their DOM hierarchy.

    12.42.0release notes

  • animateView moves from Motion+ Early Access and alpha to the main library.

    12.41.0release notes

  • useScroll now supports ViewTimeline.

    12.35.0release notes

  • Adds px as the default value type for fontSize.

    12.28.2release notes

  • Reorder.Item now supports auto-scrolling when it reaches the edges of its parent scrollable container.

    12.25.0release notes

  • Adds px as a default value type for this CSS logical property.

    12.24.0release notes

Tooling 1

Fixes and other changes 100

  • Exiting children no longer interleave with entering children, preventing reordering and remounting of children present in both renders.

    12.43.0release notes

  • Cropped group layers now animate border-radius from the old radius to the new radius.

    12.42.2release notes

  • Defining .new() now cancels the old layer fade out.

    12.42.1release notes

  • Auto-crop now accounts for aspect ratios and disables crops when aspect ratios match.

    12.42.0release notes

  • Improves handling of parallel and interleaved calls.

    12.41.0release notes

  • Prevents exit animations from getting stuck when children interrupt.

    12.41.0release notes

  • Interrupted transition setups now return a resolved animation instead of throwing.

    12.41.0release notes

  • Child e.stopPropagation() no longer breaks drag end.

    12.41.0release notes

  • Fixes an out-of-memory issue on Windows when importing via the motion package.

    12.41.0release notes

  • Object-form initial values are now applied on re-entry after exit completes.

    12.39.0release notes

  • The gesture no longer starts from an incorrect start point when rendered inside <AnimatePresence initial={false} />.

    12.39.0release notes

  • Viewport-relative refs no longer break on scroll.

    12.39.0release notes

  • In-flight motion value animations are preserved across React 19 reorder unmount/remount, preventing the drag transform from being stranded after a layout swap.

    12.39.0release notes

  • Keyframe animations rerun when switching between variant labels, even when their keyframe arrays are identical.

    12.39.0release notes

  • The framer-motion and framer-motion/m CJS bundles share React contexts, so features loaded by LazyMotion from the main entry point are picked up by <m.div> from the /m subpath.

    12.39.0release notes

  • Callback progress is fixed when tracking an element.

    12.39.0release notes

  • useAnimate now respects skipAnimations.

    12.39.0release notes

  • Refs for target and container can now be hydrated from anywhere in the tree.

    12.39.0release notes

  • Hardware acceleration is fixed when tracking an element.

    12.39.0release notes

  • Ensures children are removed when an exit animation matches current values.

    12.38.0release notes

  • Fixed axis switching after window resize.

    12.38.0release notes

  • Fixed behavior with virtualised lists.

    12.38.0release notes

  • Fixed draggable elements when layout updates because surrounding elements re-render.

    12.37.0release notes

  • The motion value returned from useSpring now reports the correct isAnimating() state.

    12.37.0release notes

  • Fixed whileInView behavior with client-side navigation.

    12.37.0release notes

  • Elements using mode="wait" no longer get stuck when switched rapidly.

    12.36.0release notes

  • The easing now returns 1 when p === 1.

    12.36.0release notes

  • Component values are reset when the exit animation finishes.

    12.36.0release notes

  • The attribute is removed from exiting elements when an animation is interrupted.

    12.36.0release notes

  • Fixed a resolve error in Storybook.

    12.36.0release notes

  • Fixed height and width: auto animations when box-sizing is border-box.

    12.36.0release notes

  • MotionValue props are no longer passed to SVG.

    12.36.0release notes

  • WAAPI is skipped for non-animatable keyframes.

    12.36.0release notes

  • WAAPI is skipped for SVG transforms.

    12.36.0release notes

  • Updated animation sequence segment types to exclude lifecycle handlers.

    12.35.2release notes

  • Fixed autoplay: false with WAAPI animations.

    12.35.2release notes

  • Detects divide-by-zero in CSS calc() values before making them animatable templates.

    12.35.2release notes

  • Fixed layout animations with parents offset by a %-based translation.

    12.35.2release notes

  • Fixed layout jumps in React Strict Mode during development.

    12.35.2release notes

  • Fixed opacity animations in React Strict Mode during development.

    12.35.2release notes

  • Fixed rounding from popLayout.

    12.35.2release notes

  • Ensured useSpring is not affected by monitor framerate.

    12.35.2release notes

  • Setting animation.time to 0 on a finished animation now sets the playhead in a paused state.

    12.35.1release notes

  • Fixes the combination of string keyframes, spring and delay.

    12.35.1release notes

  • Negative scroll values are now handled gracefully.

    12.35.1release notes

  • Fixes a one-frame visual gap when rapidly switching WAAPI animations.

    12.35.1release notes

  • Prevents Next.js from caching typeof window checks.

    12.34.5release notes

  • Fixes variant propagation for children that mount asynchronously.

    12.34.5release notes

  • Final WAAPI styles are always committed synchronously to prevent flashes of incorrect styles in Firefox.

    12.34.5release notes

  • onComplete now fires at the end of an animation sequence.

    12.34.4release notes

  • A time-derived spring no longer receives velocity.

    12.34.3release notes

  • Motion value velocity is reset when a new layout animation starts.

    12.34.2release notes

  • Improve animatable "none" generation for mask values.

    12.34.1release notes

  • Animations are no longer hardware accelerated when target is set.

    12.34.1release notes

  • Improves detection of detached elements with vanilla layout animations.

    12.33.2release notes

  • Fix sticky throw velocity on initial interaction.

    12.31.3release notes

  • Catching a thrown element kills its velocity.

    12.31.3release notes

  • Animation state is reset after being re-suspended.

    12.31.3release notes

  • Prevent stale values when mixing transitionEnd and transition.type: false.

    12.31.3release notes

  • The mode prop can now be changed.

    12.31.2release notes

  • The first argument to onHoverStart and onHoverEnd is now correctly typed as PointerEvent.

    12.31.2release notes

  • Drag constraints now update even when the draggable or constraints resize outside of React renders.

    12.31.1release notes

  • Ensures onPan never fires before onPanStart.

    12.31.0release notes

  • Drag can now be initiated by child a and button elements.

    12.30.1release notes

  • Prevents an error when calling stop() on removed elements.

    12.30.0release notes

  • Fixes shared element animations when animate is called before animateLayout.

    12.30.0release notes

  • Updates to layout animations.

    12.29.2release notes

  • Shared element animations now respect layoutDependency.

    12.29.0release notes

  • Fixes types when using motion.create().

    12.29.0release notes

  • Ensures LazyMotion animates the initial state even if the state changes before Motion is loaded.

    12.28.2release notes

  • The value "0%" is no longer treated as the default value for scale.

    12.28.1release notes

  • Fixes an edge case where the attached element was null.

    12.27.5release notes

  • Pen gestures are now correctly cleaned up when a drag is canceled.

    12.27.5release notes

  • Fixes path drawing animations in zoomed Safari contexts by switching to unitless values.

    12.27.4release notes

  • Drag gestures now trigger from keyboard-accessible elements such as buttons and textareas when drag is applied directly to them.

    12.27.3release notes

  • Gracefully handles missing elements in animation sequences.

    12.27.2release notes

  • Fixed viewport autoscroll for Reorder.

    12.27.2release notesrelease notes

  • Improves overload selection for useTransform.

    12.26.1release notes

  • Draggable elements now track the pointer during page and element scrolling.

    12.24.12release notes

  • Fixed time sampling of GPU animations under heavy CPU load.

    12.24.11release notes

  • Fixes a missing import from motion-dom.

    12.24.10release notes

  • Fixes Radix Dialog behavior when used with AnimatePresence.

    12.24.9release notes

  • Prevents a drag gesture from triggering when pressing focusable elements.

    12.24.9release notes

  • Ensures drag constraints animation resumes after a press interruption.

    12.24.9release notes

  • Unit conversion is performed when animating to or from calc() values.

    12.24.8release notes

  • Fixes duplicate exit animations in AnimatePresence.

    12.24.7release notes

  • Removed a memory leak caused by retained matchMedia callbacks.

    12.24.6release notes

  • Prevents a ref access error in popLayout mode when using React 19.

    12.24.5release notes

  • Supports ref functions that return a cleanup callback.

    12.24.4release notes

  • Ensure onAnimationStart and onAnimationComplete callbacks fire when using useSpring.

    12.24.3release notes

  • Fixed snapToCursor: true so it works with initial transforms.

    12.24.2release notes

  • CSS Motion Path properties are now applied via style on SVG elements.

    12.24.1release notes

  • Reorder.Item now correctly imports JSX.

    12.24.1release notes

  • Ensures drag gesture updates use the latest props on every render.

    12.24.0release notes

  • Fixes a missing JSX import error.

    12.24.0release notes

  • Fixes the MotionStyle type with React 19 when skipLibCheck is false.

    12.23.28release notes

  • Adds a guard for the process check to improve compatibility with ESM environments.

    12.23.28release notes

  • Improved Intellisense detection for the motion import.

    12.23.27release notes

  • Initialisation was moved to allow existing default scale correctors to be overwritten.

    12.23.26release notes

  • Relative projection boxes are re-measured when parent layout changes.

    12.23.25release notes

motion 71 changes

Fixes and other changes 1

  • Drag-to-reorder items no longer jump in React 18.

    7.0.0release notes