Share Posted March 3, 2018 Hi, How do I animate this ball up and down smoothly. I'm using fromTo but i don't know where to put "repeat:-1" See the Pen ZrZqEJ by stagnax (@stagnax) on CodePen Link to post Share on other sites
Share Posted March 3, 2018 Hi @Stagnax This should work for you. var tl= new TimelineMax({repeat:-1, yoyo:true}); tl.fromTo("#char", 1, { y: 100 }, { ease: Power0.easeNone, y: -100 }); Happy tweening. 3 Link to post Share on other sites
Share Posted March 3, 2018 As a property of TimelineMax(); You can also "yoyo" the tween to get rid of a fromTo var tl= new TimelineMax({repeat:-1, yoyo: true}); See the Pen yvrRxK by sgorneau (@sgorneau) on CodePen 6 Link to post Share on other sites
Share Posted March 3, 2018 Gahhhh!!!! Sorry @PointC ... just seconds after you :/ 3 1 Link to post Share on other sites
Author Share Posted March 3, 2018 Again thank you Craig, I'm learning a lot form the past few days. 3 Link to post Share on other sites
Share Posted March 3, 2018 @Shaun Gorneau - great minds think alike and type at nearly the same speed. @Stagnax - you're welcome. Happy to help. 2 Link to post Share on other sites