homerjam / angular-scroll-magic

An angular directive for ScrollMagic, define pins and tweens in markup
http://homerjam.github.io/angular-scroll-magic/
MIT License
18 stars 6 forks source link

sm-class-toggle #4

Open ivan-minkov opened 8 years ago

ivan-minkov commented 8 years ago

Hi, I have a problem using "sm-class-toggle" - it is not taking the sceneId so it`s not putting the class when I need it. I did I little test, opened angular-scroll-magic.js and found the directive "smClassToggle" and when I did console.log if "sceneIds" variable it returned only the first scene (that is not for classToggle), but not the scene that I need for classToggle. I did a little fix for myself in order to work but I will appreciate if you check it :)

homerjam commented 8 years ago

Hi,

Have you specified an id for both scenes like so sm-scene="sceneId"?

Could you post an example please (fiddle/plunkr/etc)?

Thanks