TeaCii
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by TeaCii
-
-
Hi,
This is my first tutorial lesson and I do not know what is wrong.
The following code simply moves a logo and makes it bounce a bit. I want to yoyo the action and repeat it indefinitely. I think the code is right. For some reason, It does the animation one time. There is no repeat or yoyo.
Any help is appreciated.
Here is the code:
function logoAnimate(){var logo = document.getElementById("tlogo");TweenLite.to(logo, 3, {margin:"0 0 0 120px",ease:Bounce.easeOut,repeat:-1,yoyo:true});}
Repeat does not work
in GSAP
Posted
Yoo hoo found my mistake.
I was using "TweenLite.to" which does not recognize yoyo and repeat
Replaced it with "TweenMax.to" and it works fine