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 elements jump after initial scroll #61

Open
philipgunther opened this issue Mar 22, 2019 · 6 comments
Open

Parallax elements jump after initial scroll #61

philipgunther opened this issue Mar 22, 2019 · 6 comments

Comments

@philipgunther
Copy link

At a scroll position of 0 the parallax effect is not active. Only when you scroll, the CSS rules are applied. This causes the parallax elements to jump unexpectedly. The following modified code (dist/jquery.paroller.js, line 191) resolves this issue.

$(window).on('load scroll', function () {
                var scrolling = $(this).scrollTop();
                var scrollTop = $(document).scrollTop();

                // if (scrollTop === 0) {
                    // factor = 0;
                // } else {
                    factor = setMovement.factor($this, width, options);
                // }
@srevenant
Copy link
Contributor

I see the same problem, but this doesn't quite resolve the bug. The "jump" that happens just happens on load now. Everything is shifting.

@srevenant
Copy link
Contributor

srevenant commented Mar 25, 2019

The code above doesn't fix it properly. This is a small PR that gets closer (but on further testing it's not quite there): #62

And this is a PR that includes a lot of var cleanup: #63

I haven't tested all of the use cases to see if this break anything else... it is not yet ready, as the jump sometimes still happens.

@sebszocinski
Copy link

+1 happening to me as well.... oh well, off to the next plugin

@elliott-impression
Copy link

elliott-impression commented Jun 18, 2019

@tgomilar hey any news on this? Still an apparent issue. It works fine in version 1.4.0.

Thank you!

@philipgunther
Copy link
Author

@tgomilar Could you tell us when we will get the next release?

@katsar0v
Copy link

katsar0v commented Oct 6, 2021

Good plugin... poor maintanence :/

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

5 participants