Jump to content
GreenSock

anotheruser

tween repeat to finite time

Recommended Posts

Hi this is a new question

 

lets consider that i have a timeline t1

 

the total duration is of the timeline t1 is 8 and but i want that to repeat once , but the total time should not exceed 12 seconds

 

so basically the first loop will be a normal animation and the second one would be a part of it

Link to comment
Share on other sites

Hey anotheruser. Is this the same question as your other thread? Or subtly different?

 

1 hour ago, anotheruser said:

so basically the first loop will be a normal animation and the second one would be a part of it

So you only want half of the timeline to play the second time? Or are you saying that you want the second time to go at twice the speed so it completes?

 

Most likely the easiest way to play half of the timeline the second time would to be to pause it like how mikel suggested in the other thread. 

 

There are a lot of other options though. Like controlling the play state of the timeline in its onComplete:

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

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