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

FIX/rellax.js: introduce document.onreadystatechange to call init() #180

Closed
wants to merge 1 commit into from
Closed

Conversation

guidoschmidt
Copy link

Trying to solve Issue #40. I'm absolutely not sure if that really solves the bug, as I have used rellax.js only for some hours yet and lacking of experience using it as a library. But it seemed to me, that the init() function needs to be called after the document has loaded in order to get more correctish values for the y position 🤔

See https://streamable.com/2fwnq for demo

@guidoschmidt guidoschmidt mentioned this pull request Nov 28, 2019
@moeamaya
Copy link
Member

moeamaya commented Dec 1, 2019

@guidoschmidt Can this be solved by calling the rellax.js when the document is ready? If so I will just update the README instead of requiring it in the code.

@guidoschmidt
Copy link
Author

True, might actually be the better option to put it into the README and ensure a finished document load on the user side of rellax.js 🤔 👍

@moeamaya moeamaya closed this Jan 26, 2020
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

Successfully merging this pull request may close these issues.

2 participants