Jump to content
Search Community

delay reverse tween

komodo test
Moderator Tag

Recommended Posts

using TweenMax you could do:

 

TweenMax.to(box, 1, {x:100, repeat:1, repeatDelay:2, yoyo:true});

 

the box will move to an x of 100 immediately

2 seconds after the box moves it will move back to its original x

 

if you don't use yoyo

 

the tween will play once from origin x to 100

pause 2 seconds

play again from origin x to 100

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