Closed TravisL12 closed 1 year ago
Thanks for reporting - I will try and look into this soon, it seems logical that this should work! For now a solution would be to wrap both section
elements within the same sm-class-toggle
...
<div class='home' sm-scene='homeId' offset='1000'>
<span sm-class-toggle='homeId' classes='triggers-both'>
<section class='description'>
<h1>This class toggles correctly</h1>
</section>
<section class='features'>
<h1>This class toggles correctly too ; )</h1>
</section>
</span>
</div>
Hey there, I have been trying to setup two elements with
sm-class-toggle
that both reference the samesm-scene
. The first of these elements will toggle correctly but the second one is being ignored. My structure is basically like this:When I remove the first (working)
<section>
the second<section>
will start triggering. So either I am incorrectly assuming that this is a proper use case for ScrollMagic or perhaps thesm-class-toggle
directive is not firing correctly for multiple elements.