Skip to content

Position #16

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

Closed
fabiovaz opened this issue Dec 5, 2014 · 3 comments
Closed

Position #16

fabiovaz opened this issue Dec 5, 2014 · 3 comments

Comments

@fabiovaz
Copy link

fabiovaz commented Dec 5, 2014

First your script is wonderful.

But I'm having a problem, I have a div with 500px in height at the top of the page when I use the bottom position option, still remains much below the image area, I can not adjust to it to rise more.

Thank you.

@liorocks
Copy link

Have a same issue, any solutions?

@mikegreiling
Copy link
Member

This is an enhancement I would like to make for the library at some point... the reason this occurs is that the parallax position does not take into account where the element is within the document.

If the image were anywhere else in the document, the parallax "slider" will need slack both above and below the image to accommodate the effect when scrolling up or down, but at the top it doesn't need to accommodate the image scrolling up, so it should calculate things differently...

Short answer is there is no quick way to fix this at the moment and I do not currently have the time to make the changes to the library, but if anyone else is willing to submit a pull request I would be happy to update it.

For now, you may be able to alleviate the problem a tad by modifying the image height and padding the bottom. I realize this is not ideal.

@mikegreiling
Copy link
Member

Just went in and implemented a quick fix for this. v1.3 should no longer have this issue.

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

3 participants