Jump to content
GreenSock

ochalmers

Multiple Scrollmagic instances

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi all - I know there are some keen scrollmagic'ers on here so thought it ok to give it a post. The problem i'm having is setting up multiple instances of Scrollmagic using an each statement. In the attached pen they all seem to be following the one call instead of their individual states. Any pointers kind folks?
 

See the Pen zqgEdV by olichalmers (@olichalmers) on CodePen

Link to comment
Share on other sites

Just thought i'd post in here to say I found Petr Tichy had answered my exact question in one of his tutorials. 

 

Thanks Petr. I think what I had wrong was the triggerElement call.

  • Like 3
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.
×