skrollr icon indicating copy to clipboard operation
skrollr copied to clipboard

Skrollr intermittently breaking...

Open manueltomasir opened this issue 7 years ago • 5 comments

I am experiencing an issue with skrollr where sometimes it doesn't work on the initial load of a page, but once you scroll down to the element in question, and refresh the page, it works fine...

Is this something you've seen before?

For reference...

swankmedia.ca/coleman-smith

Each section has a black box with a description, there's a vertical grey line on each box that should be animating...

manueltomasir avatar Mar 02 '17 18:03 manueltomasir

@manueltomasir Where you able to figure this out?

ronidavelman avatar Mar 08 '17 16:03 ronidavelman

No, still no solution...

manueltomasir avatar Mar 09 '17 19:03 manueltomasir

After the skrollr.init(), try running .refresh() on your skrollr object. I had a similar issue where the last slide would break, so I had to call .refresh() once the user got 50% down the page.

ronidavelman avatar Mar 10 '17 01:03 ronidavelman

Thanks i'll give that a try

manueltomasir avatar Mar 22 '17 17:03 manueltomasir

If you're using jQuery, this seems to work for me.

var s = skrollr.init();

$(window).on("load", function(){
   s.refresh();
});

jrue avatar Apr 20 '17 04:04 jrue