angular-scroll-magic icon indicating copy to clipboard operation
angular-scroll-magic copied to clipboard

smClassToggle: remove given class

Open StSenf opened this issue 9 years ago • 2 comments

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!

StSenf avatar Nov 19 '16 14:11 StSenf

Hi @derhulm

Could you provide a plunkr showing this please?

Thanks

homerjam avatar Nov 21 '16 10:11 homerjam

Sorry - i unfortunatelly don't know how to build a plunkr or codepen to show you this problem.

StSenf avatar Nov 21 '16 17:11 StSenf