Hi!
I'm trying to use Scrollsmoother but I have a problem with lazyload images.
The scroll doesn't refresh or update when images are loaded.
Maybe it could nice a method for refresh or update scrollsmoother.
Anyone has a solution for this?
Thanks!
See the Pen OJzQgRQ by marctaule (@marctaule) on CodePen
You had a typo in your code that was throwing an error. I'm not sure why you were trying to call .refresh() on the smoother's ScrollTrigger (before your images even loaded).
I didn't realize you were using a different library and only loading the images on-demand. In that case, yes, you'd need to at least call .refresh() on the individual ScrollTrigger associated with that newly-loaded image.
Originally, I thought you were just starting the load of all the images after y