react-magic-motion is a npm package for react.js that gives you a component named <MagicMotion>. All children of this MagicMotion tag will have all their layout changes animated.
This automatic animation built on top of framer-motion, so that means that you will get all of its features as well (spring animation, shared layout animations, etc...).
https://www.react-magic-motion.com/
https://github.com/etesam913/react-magic-motion
> react-magic-motion's only dependency is framer-motion as the automatic animation is built off of framer-motion's layout animations.