Packages

motion

14.14.0 · 13 Nov 2026MIT38.5M / weekRepositoryHomepagenpmAtom feed

Your version

2.0.0

major15 Jun 2016Where it was published
npm marks 2.0.0 as deprecated: Use pundle-cli instead

In short

5 breaking5 new1 fixed4 changed

  • Breaking

    positionTransition and layoutTransition props (use layout={true} instead).

  • Breaking

    Point type in favour of Point2D.

  • Breaking

    useAnimatedState: Moved to Framer library.

  • Breaking

    dragOriginX, dragOriginY props.

  • Breaking

    stylefire as a dependency.

Release note

Added

  • layout prop for automatic layout animations.

  • AnimateSharedLayout and layoutId for shared layout animations.

  • onMeasureDragConstraints prop that fires when dragConstraints are measured.

  • useIsPresent, a read-only version of usePresence.

  • Allow dragConstraints to be a ref that is smaller than the draggable element.

Removed

  • Breaking

    positionTransition and layoutTransition props (use layout={true} instead).

  • Breaking

    Point type in favour of Point2D.

  • Breaking

    useAnimatedState: Moved to Framer library.

  • Breaking

    dragOriginX, dragOriginY props.

  • Breaking

    stylefire as a dependency.

Fixed

  • Removing a MotionValue from style now correctly unsets it from the element.

Changed

  • Using Proxy to generate motion components. This saves ~0.5kb from the bundle size and ensures compatibility with all DOM elements and Web Components.

  • x and y transform values won't change as a result of a drag gesture as this now works via layout projection.

  • Drag events now report point as 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.