slebbo
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by slebbo
-
-
On 4/20/2021 at 3:55 PM, akapowl said:
You could give your ScrollTrigger an ID
Sorry for not responding earlier — yes! this solved my problem!
-
I have a ScrollTrigger that I've created like this;
let ST = ScrollTrigger.create({ ...
In my usecase, I only want to diable/kill/destroy that specific instance.
BUT — when I run;
ST.kill();
this kills ALL of my other ScrollTriggers, globally.
Is that intended behavior? If so, how can I just remove one instance? 🤔
Cheers!
-
Thanks a lot, exactly what I need. Didn't even think about that but it makes perfect sense
- 1
-
ScrollTrigger: .kill() or ”destroy” one specific ST-instance?
in GSAP
Posted
I was doing this with Laravel Mix (webpack) and AlpineJS. If it was unexpected behavior from GSAP's side, it was probably due to some other environmental related issue. How ever, the ID-solution did work out splendedly