Greetings,
Is there a javascript guru out there that can help me edit my codePen? I need to totally strip out jquery and replace with gsap?
I have a couple of banner projects coming up and neither ad server will allow jQuery. Any help is much appreciated as I am stuck
Thank you,
Renard
See the Pen grmmxW by rizzy3000 (@rizzy3000) on CodePen
I guess I didn't fully answer your question about calling a particular function. I was just showing a way to figure out what the current panel is. Once you know that, you can run whatever logic.
For example, you could figure out what function to call using a bunch of if/else statements or a switch, but that could get messy if you have a lot of panels. Another way would be to call a function directly. Here's an example of how you could get the name of a function to call by using a data attrib