Jump to content
Search Community

Multiple ScrollTrigger Image Sequences - Strategy question

newguy123 test
Moderator Tag

Recommended Posts

Hi

As per the Apple Airpods example on GSAP, which currently only shows 1 image sequence in the example, what if I want to have 3 or 4 sections, each with its own sequence?

Do I simply duplicate the existing code for the single section, and just rename the classes/ids in html for each section, and same in the javascript?

Ie, I will then have 4 different scrolltriggers, each firing when its relevant section reaches it's start?

Link to comment
Share on other sites

17 minutes ago, newguy123 said:

Do I simply duplicate the existing code for the single section, and just rename the classes/ids in html for each section, and same in the javascript?

Sounds like a good start! Try that and see how far you can come, throw in some solid debugging effort if it's not working and then post back here with a minimal demo if you still need help.

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...