framer/motion v2.4.0 Release Notes

Release Date: 2020-08-12 // over 3 years ago
  • ➕ 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.