Prototyping Gamepad UI’s with @framer since their release of Framer Motion is fantastic.
Here’s an example of forward/backwards page transitions using React Router in combination with Framer Motion’s Animate Presence feature.
I don't often use Framer Motion's imperative animation controls but they can be a useful escape hatch when you need to animate something that isn't necessarily as a result of a state change.
codesandbox.io/s/framer-moti…
Of all React animation libraries I tested, @framer Motion made the highest impression on me. Here's an example of animating Next.js page transitions: next-motion.heruc.now.sh
🖼🔍 Haven't done one of these in a while! Check out how simple an image zoom effect is with Framer Motion. Just layout your two states for the image using CSS, whack on a layoutTransition prop and:
codesandbox.io/s/framer-moti…
🚀 Introducing the App Store, for web!
...Well okay, maybe just its UI. Recreated in @reactjs using the new layout transition feature in Framer Motion 1.6!
codesandbox.io/s/app-store-u…
Animating size via scale rather than width and height is great for performance, but it visually distorts child content.
The new useInvertedScale @reactjs hook in Framer Motion 1.5 provides two MotionValues that correct this distortion!
Check it out: codesandbox.io/s/framer-moti…
Framer Motion's useViewportScroll and useTransform hooks can be combined to create declarative parallax effects in @reactjs
Here's an example with CSS blend modes: codesandbox.io/s/framer-moti…
(Blend mode performance falls apart at higher viewport sizes - any ideas?)
🎣Framer Motion's useAnimation hook provides imperative animation controls that you can pass to one or more motion components.
The ability to manually trigger animations can help out in a pinch. Just don't get carried away:
codesandbox.io/s/framer-moti…