This component creates a dramatic floating gallery effect similar to the reference website. Here's what it includes:
You can customize this by:
imageVariants
objectThe images float in from the sides and then continue to move slightly, creating an engaging visual effect. The dark overlay helps maintain text legibility while creating depth in the design.
Let me fix the easing function in the animation variants.
I've made the following changes to fix the error:
ease
property in the animate
transition from the cubic-bezier value to the named easing function "easeOut"
. Framer Motion provides several named easing functions that are safer to use than raw cubic-bezier values.The animation should now work without any errors. The easing functions available in Framer Motion include:
The animation effect should remain smooth while being more stable. Let me know if you need any other adjustments!