janpaepke / ScrollMagic

The javascript library for magical scroll interactions.
http://ScrollMagic.io
Other
14.88k stars 2.17k forks source link

Can't get multiple scenes working with ScrollMagic #804

Open tomicat22 opened 6 years ago

tomicat22 commented 6 years ago

I'm trying to get multiple PNG sequence animation scenes/triggers happening in one page using ScrollMagic and for some reason one scene is breaking the other.

Here is my staging: http://ddi.com.au/wp-content/about/about.html and Git: https://github.com/tomicat22/scrollmation

As you'll see the second scene is triggered fine but the first isn't. Both scenes use a unique ID for the trigger. I've seen use of triggerElement: this but this does not work either.

tomicat22 commented 6 years ago

I was able to figure this out finally it was a variable used to identify each scene and both were using the same string. Both animations are now triggering as they should.