Jump to content

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

how can we repeat animation for 2 seconds after every 10 second?

Recommended Posts

i want to repeat animation after 10 second 

duraion of animation should be 2 second

Link to comment
Share on other sites

I'd use a function that calls two tweens repeatedly. I'm sure there's a more elegant way to do it, but this will work:

function doit(){
    TweenMax.to(element, 2, {
    TweenMax.delayedCall(10, doit);
Link to comment
Share on other sites

Hi guys :)


Maelfyn 's right , but there's another simple way :


TweenMax.to(element, 2 ,{ x:200 , repeat:-1, repeatDelay:10 })
  • Like 1
Link to comment
Share on other sites

Nice one! I just felt my brain get bigger.

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.