Jump to content
GreenSock

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

How to pause and then reverse after timeline?

Recommended Posts

Hello, everyone on this great forum.

 

Can someone help me to figure out, how to make timeline animation to pause after the one cycle for 3 seconds and then just reverse animation back? 

 

See the Pen rbBXmY by bdrtsky (@bdrtsky) on CodePen

 

 

See the Pen rbBXmY by bdrtsky (@bdrtsky) on CodePen

Link to comment
Share on other sites

You can set the timeline to yoyo and use a repeatDelay.

 

let master = new TimelineMax({
  yoyo: true,
  repeat: 1,
  repeatDelay: 3
});

 

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

 

Is that what you meant?

 

Happy tweening.

:)

 

  • Like 2
Link to comment
Share on other sites

I can't, this animation is only a part of the bigger one. 

Link to comment
Share on other sites

Oh wait. I can! I can define this in inside this function, not on master. Cool! Thanks!

 

Much simpler then I expect.

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