Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Altea

Change same Image with animation on Click

Go to solution Solved by Cassie,

Recommended Posts

Hello everybody,

I'm having a hard time to resolve the problem with my current animation.

If you click on any of the menu you will see that an animation starts to change the picture showed.

The problem is if you click a menu while the animation hasn't finished yet, if you try to click on a menu and then quickly click on a second menu you will see what I mean.

 

Can anyone point to me what I'm doing wrong?

 

Thanks

See the Pen YzQzzaM by skie78 (@skie78) on CodePen

Link to comment
Share on other sites

  • Solution

You have conflicting tweens here, setting overwrite:true on the exit tween seems to fix the issue.

Is this what you're after?

See the Pen QWgWwda?editors=0010 by GreenSock (@GreenSock) on CodePen

  • Like 5
Link to comment
Share on other sites

Great!!! this is exactly what I needed.

 

Thanks a lot

  • Like 1
Link to comment
Share on other sites

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.
×