Instructor: Sometimes, you just want an animation to continuous loop. If I go tweenMax to grab the Eggo, set the duration to one second, then say the scale should be 1.25, hit save, you'll see it scale up. Then it's done.
If I then add a repeat of -1, then it'll infinitely repeat, but it'll start from 0or start from 1, and go up to 1.25. Any positive number, if I just put 2 there, you'd see it would do this twice, then stop and not repeat.
We'll leave that at -1. Then to make it go back and forth, I'm going to add in a yoyo true. If I hit save there, you'll see it go in and out, in and out, nice and smoothly. Now, to make this more emphasized, I'm going to bring in a different type of tween.
We're going to call this elastic, and I'll set the ease of our tween now to elastic, and just do elastic ease in out. Hit save there, and now it'll sproing in and sproing out. If we make this a little bit faster, this will definitely draw someone's attention to that part of the page.