Jump to content
GreenSock

MadG

Problem with reversing then repeating a FLIP animation

Recommended Posts

Hey all, back again. I'm stuck on a minor issue and hoping I can get some clarity. I basically need to be able to toggle back and forth between beginning and ending FLIP states as shown in the pen. If you play and reverse the first time, everything works fine, but if you try to play again after reversing, everything gets thrown off. Any ideas why this might be and how I can address it? Thanks!

See the Pen qBVMOyX by kslaton (@kslaton) on CodePen

Link to comment
Share on other sites

Disregard! I figured out that I can just do this: 

See the Pen yLPxayJ by kslaton (@kslaton) on CodePen

 

I was wary of this at first because I also have some other conditional stuff that needs to happen concurrently, but I'm just going to solve it by checking the target classes to see if the animation is playing forwards or backwards and execute those accordingly.

  • Like 2
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.
×