Jump to content
Search Community

scale object size using mouse over

Guest zachledoux
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

To have an animation repeat you can use TweenMax and provide a repeat value

 

//give the element a starting opacity of 0
TweenLite.set(myObj, {css:{opacity:0}});
//tween to scale:2 and opacity:1
TweenMax.to(myObj, 1, {css{scale:2, opacity:1}, repeat:5, yoyo:true});

 

Please have a look here: http://www.greensock...tart-js/#repeat

 

Use the "view full demo source" feature to access a link to download multiple sample files which I think you will find very useful.

Link to comment
Share on other sites

Guest zachledoux

The repeat works great. Is using "-1" the best way to set repeat to infinite?

 

The sample file download pack is awesome too, definitely a good starting point.

 

Thanks again,

Zach

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