New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

motion

Package Overview
Dependencies
Maintainers
2
Versions
249
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

motion - npm Package Versions

1
25

3.2.1

Diff

Changelog

Source

[3.2.1] 2020-01-11

Added

  • Exporting useVariantContext for internal Framer use.
nwienert
published 3.2.0 •

Changelog

Source

[3.2.0] 2020-01-08

Added

  • Support for hex alpha, ie #FFF0 and #FFFFFF00.
  • Support for default filter values. For example, when animating from brightness(50%), the animation will start from brightness(100%)rather thanbrightness(0%).
nwienert
published 3.1.2 •

Changelog

Source

[3.1.2] 2020-01-04

Fixed

  • snapToCursor respects drag axis.
nwienert
published 3.1.1 •

Changelog

Source

[3.1.1] 2020-12-18

Updated

  • Updated dependencies.
nwienert
published 3.1.0 •

Changelog

Source

[3.1.0] 2020-12-18

Added

  • whileFocus
nwienert
published 3.0.2 •

nwienert
published 3.0.1 •

Changelog

Source

[3.0.1] 2020-12-18

Fixed

  • Error when mixing initial={false} and animate={controls}.
nwienert
published 3.0.0 •

Changelog

Source

[3.0.0] 2020-12-16

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

  • The deprecated useInvertedScale hook. Use the layout prop instead.
  • 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.
steelbrain
published 2.0.0 •

Changelog

Source

[2.0.0] 2020-07-15

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

  • positionTransition and layoutTransition props (use layout={true} instead).
  • Point type in favour of Point2D.
  • useAnimatedState: Moved to Framer library.
  • dragOriginX, dragOriginY props.
  • 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)
steelbrain
published 1.4.3 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc