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

Parallax calculation should use the center of the viewport #29

Open
thelucre opened this issue Jul 25, 2019 · 1 comment
Open

Parallax calculation should use the center of the viewport #29

thelucre opened this issue Jul 25, 2019 · 1 comment

Comments

@thelucre
Copy link

thelucre commented Jul 25, 2019

Problem:
Translations are dramatically different for elements depending on where they are in the entire page layout. Using absY or not doesn't help.

Expected:
Parallax translations should be relative to the element's position to the window viewport, not the entire page height. An element at dead center of the window viewport should effectively have 0 translation applied, so layouts can be controlled.

@thelucre
Copy link
Author

The Rellax library has a similar feature, see:
dixonandmoe/rellax#67 (comment)

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

1 participant