Skip to content
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.

Skrollr intermittently breaking... #842

Open
manueltomasir opened this issue Mar 2, 2017 · 5 comments
Open

Skrollr intermittently breaking... #842

manueltomasir opened this issue Mar 2, 2017 · 5 comments

Comments

@manueltomasir
Copy link

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...

@ronidavelman
Copy link

@manueltomasir Where you able to figure this out?

@manueltomasir
Copy link
Author

No, still no solution...

@ronidavelman
Copy link

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.

@manueltomasir
Copy link
Author

Thanks i'll give that a try

@jrue
Copy link

jrue commented Apr 20, 2017

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

var s = skrollr.init();

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants