Jump to content
Search Community

Flip element misalignment problem

gonghaibo
Moderator Tag

Recommended Posts

Posted

image.png.94af1271f51035b5d9c641262d3e9b7f.pngHi, I am a newbie to gsap. When I found the flip plugin, I was so surprised. It was amazing.
But after my exploration, I found that there would be a slight misalignment here. How can I solve it?
Currently, I found that the only way is to increase the delay, but this is not perfect. I have been working hard for two weeks on this problem and have not found a suitable solution.

My Expectations
 

image.png.747b64c10f91688c494fbc093eb78c04.png

 

 

this is my codesanbox

https://codesandbox.io/p/sandbox/gallant-neco-vnq8j8

See the Pen gallant-neco-vnq8j8 by p (@p) on CodePen.

Posted

Hi,

 

Yeah not a lot that can be done since all the animations are happening at the same time, with the same duration and easing function, that overlap is bound to happen.

 

What you can do is also scale down the element being added in order to avoid that, as show in these demos:

See the Pen BaRvbmE by GreenSock (@GreenSock) on CodePen.

 

See the Pen eYwbjdz by GreenSock (@GreenSock) on CodePen.

 

Hopefully this helps

Happy Tweening! 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...