Packages

motion

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

Your version

3.0.0

major14 Jul 2016Where it was published

3.2.4 is the newest release of 3.x.

npm marks 3.0.0 as deprecated: Use pundle-cli instead

In short

2 breaking4 new4 fixed

  • Breaking

    The deprecated useInvertedScale hook. Use the layout prop instead.

  • Breaking

    The deprecated yoyo, flip and loop options. Use repeat and repeatType options instead.

Release note

Added

  • whileDrag

  • Adding Safari-prefixed userSelect css to draggable elements.

  • whileHover, whileTap and exit all now accept variant lists.

Changed

  • New behaviour for when values are removed from animation props (animate, whileHover, exit etc). The value will be searched for in active props of a lower priority running (style <- animate <- whileHover <- whileTap <- whileDrag <- exit). This may introduce subtle behavioural changes, hence the major.

Removed

  • Breaking

    The deprecated useInvertedScale hook. Use the layout prop instead.

  • Breaking

    The deprecated yoyo, flip and loop options. Use repeat and repeatType options instead.

Fixed

  • Correctly applying transform on SVG elements.

  • Lazy-initialising viewport scroll, VisualElement.axisProgress, and reduced motion MotionValues, for increased startup performance.

  • Improved measurement scheduling for drag components and nested AnimateSharedLayout trees.

  • Robust calculation of treeScale.

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.