Skip to content

framer-motion 2.4.0

[2.4.0] 2020-08-12

Added

  • Upgraded useTransform to accept multiple MotionValues.
  • Support for transformPerspective style.
  • Internal: _dragX and _dragY external MotionValue targets for drag gesture.
  • Internal: Support for rotate in AnimateSharedLayout within Framer.
  • Internal: onViewportBoxUpdate, onLayoutMeasure and onLayoutUpdate event handlers added to HTMLVisualElement.

Fixed

  • Fixed AnimateSharedLayout within React 17.0.0-rc.0.
  • Drag now works directly on x and y transforms unless layout or layoutId are also set.

Changed

  • Marked useInvertedScale as deprecated.