vue-parallax-js icon indicating copy to clipboard operation
vue-parallax-js copied to clipboard

Parallax calculation should use the center of the viewport

Open thelucre opened this issue 6 years ago • 1 comments

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 avatar Jul 25 '19 15:07 thelucre

The Rellax library has a similar feature, see: https://github.com/dixonandmoe/rellax/issues/67#issuecomment-354317366

thelucre avatar Jul 25 '19 16:07 thelucre