Jump to content
Search Community

Toggle Animation

JamesGrubb test
Moderator Tag

Recommended Posts

Hi. Im porting over an example created in this forum demonstrating toggling an animation using Gsap 2.1.3/TweenMax.min Im trying to recreate the same toggling function using with Gsap 3.4.2/gsap.min. I've kep the code the same except change new TimelineMax() to gsap.timeline() , but im getting a jump at the neginning of the animation. Original pen

See the Pen WqKyye by PointC (@PointC) on CodePen

 Hope you can help.

See the Pen c3bd68c1d3a190eae707728c28166853?editors=1011 by limitedunlimited (@limitedunlimited) on CodePen

  • Thanks 1
Link to comment
Share on other sites

Just FYI for anyone stumbling onto this thread. The original reference demo pen was one of mine and I took this opportunity to update it to GSAP 3. The from() tween at the beginning of the reversed timeline works perfectly now with the fix from Jack.

 

That is all. Happy tweening.

:)

 

  • 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.
×
×
  • Create New...