Using Animate and including the GSAP library I've made a basic slideshow containing three slides. I've added two buttons to make the slider go left and right. When pressing the left arrow the slider should go from x=0 to x=-300 and pressing again to x-600 and nor further than that. When pressing the right arrow the slider should go from x-600 to x-300 to x=0 and no further than that.
I was faced with two problems.
First the arrows should make the slider only tween when it
Nice one, @PointC!
Also, here's a fork of Blake's codepen, updated to GSAP 3:
See the Pen GRJwLNP?editors=0010 by GreenSock (@GreenSock) on CodePen
Seems to work fine for me. Did I miss something @InTheOne?