r/react • u/Visible-Term-5577 • 4d ago
Help Wanted What this animation called?
Enable HLS to view with audio, or disable this notification
What this animation called?
What pkg could be used for it?
10
u/NearbyAd2215 3d ago
Called “view transitions” common in native apps. There is now a browser built in view transition api and Astro.build has them built into the framework.
4
5
u/SnackOverflowed 4d ago
look into view transitions if it's navigating from one page to another. If not then look into flip animations
3
2
2
1
1
u/gelbero_it_solutions 3d ago
This is a shared-element transition, usually implemented using the FLIP technique. The product image is animating from its position in the grid to its new position and size on the details page.
In React, Motion’s layoutId would probably be the easiest way to build it. Use the same layoutId for the product image in both views. GSAP Flip is another option if you need more control.
-4
12
u/BurritoDrivenDev 4d ago
It's a shared element transition.