Hi,
after having followed the forum, checking many examples and watching some tutorials, I have started playing with GSAP and so far it has been really fun. Now I have used Jonathan's example of the slider with controls (this one: https://codepen.io/jonathan/pen/qqmBjQ ). It worked quite well, but now I am stuck on two things. So I thought now would be a good opportunity to start posting in the forum
Is it possible to have autoplay just run once and stop at the last frame? And how could I add digits that let me navigate to each slide and show which slide is active?
Here is my example: https://codepen.io/lukenicktap/pen/peLreK
For the autoplay I tried:
function loopCheck() {
$currentSlide++;
if ($currentSlide < 2) {
TweenLite.killDelayedCallsTo(play);
}
But this does nothing.
If anyone could point me in the right direction, I would really appreciate it.
Cheers,
Lucas