Hi!
I'm using Scrollsmoother in a website and I have some problems.
I'd like to open a modal with scroll but overflow: auto; in this modal doesn't work.
I also try to use two instances of ScrollSmoother but it doesn't work either.
Can anyone help me?
Thanks!
See the Pen zYppKmL by marctaule (@marctaule) on CodePen
Sorry about any confusion there - the problem is that the effects-related stuff needs to be reverted which isn't happening in the ScrollSmoother's kill() (that should be fixed in the upcoming release). As a band-aid solution in the current version, you can add this line right before your smoother.kill():
smoother.effects().forEach(st => st.vars.onRefreshInit());
See the Pen jOYYRQy?editors=0010 by GreenSock (@GreenSock) on CodePen
Better?