Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page hard refresh #52

Closed
AhhhNuki opened this issue Apr 11, 2017 · 3 comments
Closed

page hard refresh #52

AhhhNuki opened this issue Apr 11, 2017 · 3 comments

Comments

@AhhhNuki
Copy link

Browser: firefox
when page is refreshed with CTRL+F5 or CTRL+SHIFT+R

element that has parallax effect changes position

example here: http://www.iambailon.com/

same thing happens with my page
default
2

@AhhhNuki AhhhNuki changed the title web page hard refresh page hard refresh Apr 11, 2017
@p-realinho
Copy link
Contributor

I haven't done much testing, but as far as I can tell, it could be due to the images not being fully loaded yet when Rellax tries to do its calculations.
Could you try to create the Rellax instance inside of window.onload and see if that solves it?
Something like

window.onload = function(){
    var rellax = new Rellax('.rellax', {opt: val});
}

Then again, no testing was done, so I could be entirely wrong lol

@codymx
Copy link

codymx commented May 11, 2017

@p-realinho Thanks! This worked wonders.

@rogeralbinoi
Copy link

Thanks! <3

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

No branches or pull requests

4 participants