smClassToggle: remove given class
Hi there, i did find a bug trying to remove a given css-class while using smClassToggle. On scroll down, a given css-class should be removed and added again when scrolled up. Like so:
<div class='"given" sm-scene="someId" duration="500" trigger-hook="0.75" sm-class-toggle="someId" classes="given">
</div>
It won't work. When i scroll to the needed position, somehow an endless loop removes/adds the class. When i scroll further, the class is removed.
Any idea why that happens? Kind regards!
Hi @derhulm
Could you provide a plunkr showing this please?
Thanks
Sorry - i unfortunatelly don't know how to build a plunkr or codepen to show you this problem.