🚀 New in Framer Motion 1.4.0: Exit animations for any component!
As long as its first motion component contains an exit prop, you can now animate out any component with AnimatePresence.
I decided to rewrite my recent BottomSheet experiment with Framer Motion by @framer and I gotta say that this lib is just incredible 😍
I replaced react-spring + react-use-gesture + body-scroll-lock with just framer-motion! 🤯
Code: github.com/Temzasse/playgrou…#reactjs#animation
SVG filters can also be animated in @reactjs using @framer Motion. So you can animate effects like this duotone filter!
Every prop of every SVG filter is supported, using all the same spring physics, keyframes, variants etc
codesandbox.io/s/framer-moti…
Make accordions in @reactjs by animating height between 0 and "auto" with Framer Motion.
Bonus: Wrap the accordion content with AnimatePresence to only render visible panels.
codesandbox.io/s/framer-moti…
Had a pop at this here guys: codesandbox.io/s/happy-bhabh…
Springs feel less rigid now. @mattgperry is there a better way i can set the y offsets? maybe using useTransition? currently overriding the drag x/y pos in the onDrag cb.
With Motion, you can combine the positionTransition prop with AnimatePresence to animate @reactjs notification panels. The other notifications will smoothly animate into their new positions as a result of state changes.
codesandbox.io/s/framer-moti…
Remember @MengTo 's amazing 'three card drag' blur animation in SwiftUI!
Here's its React implementation using @framer motion. Those 30 loc in video is all the code you need.
At this point, I'm considering SwiftUI to be a design tool. I've been trying almost every effect so I can explain what each does and how to use them effectively for design.
Took @framer Motion for a spin and implemented a directional stagger effect in a grid 🙂. The delay is calculated based on the item position and therefore works for responsive layouts. Framer Motion is 👌. @reactjs
Demo: q416h.codesandbox.io/
Code: codesandbox.io/s/framer-moti…
Framer Motion makes CSS variable animations as simple as setting @reactjs styles.
With a single declarative animation you can drive multiple elements, with zero re-renders!
Check out the full @codesandbox example codesandbox.io/s/framer-moti…
Awake? Wow what an amazing coincidence, we're #5 on ProductHunt today and would love you to sprinkle some of your waking life over our upvote button.
producthunt.com/posts/framer…
This is easy to miss - the responsive header animation by @bouchenoiremarc on the Framer Motion homepage flexes the API - semantic markup, staggers variants, path deformation, AnimatePresence, positionTransition, probably more! All at once.
Check it out: framer.com/motion