Jump to content
GreenSock

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

How to repeatedly toggle a property between two values

Recommended Posts

Is there a way to use TweenMax to repeatedly toggle a property between two values without tweening intermediate values?  Let's say I want to continuously toggle an img tag, used as a sprite sheet, between top:0% and top:-100%?

 

I've achieved this by using delayedCall, but it's cumbersome and requires three separate functions.

Link to comment
Share on other sites

Very cool Carl.. I see you added the Ease Visualizer to the easing API documentation pages.. that is the butter!

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