Jump to content
Search Community

Reverse animation in a timeline for an object

bootstrap007 test
Moderator Tag

Recommended Posts

There are lots of ways :)  What do you mean "a while"?

 

You could change the repeat count to be a positive number and it would go for that many times. Or you could pause it by calling .pause() on the timeline (if you're using one) after a set amount of time using .delayedCall() or based on a user's interaction.

Link to comment
Share on other sites

Hi,

I have created another CodePen (

See the Pen BayqRjB by bootstrap007 (@bootstrap007) on CodePen

) and this will make it clear for you. As you see the rotation animation is repeating continuously until the another 2 boxes appear on the screen. After the completion of animating those 2 boxes (left & right side ones) on the screen then the rotation of the center box should stop or pause it. That's exactly what i am looking for.

 

See the Pen BayqRjB by bootstrap007 (@bootstrap007) on CodePen

 

 

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