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
Jump on scroll vertically #53
Comments
I have the same issue. Jumps in both horizontal and vertical. Jumps at the very beginning, as soon as I start to scroll. I am using the latest version 1.4.6. too. |
@oueryemchi @oueryemchi please provide code example and info like which browser and OS do you use. |
https://codepen.io/abvas/pen/mvwyab |
@tgomilar I think the problem only occurs when the element to be affected is already in the viewport on page load. Initial positions should probably be set before scrolling, to avoid the jump on scroll. |
It's clear. And the element when loading the page can be hidden out of sight. But I wanted the element to be visible immediately after the page loads. But if it is visible, then at the beginning of the scroll is visible and racing. That is why the question arises what to do. |
As a hacky workaround, I changed line 135 from and I also commented out the factor = 0; at line 197. |
Unfortunately, at the very beginning, the race remained. And then it works fine. |
Sorry, I also set the initial background position with CSS. Unfortunately, my hack only helps elements near the top of the document, it messes up ones further down. |
Anyway, thanks for the help. Maybe the author will offer something. |
Hello, I have tried to give you a simple example : https://codepen.io/unmick/pen/VgrNOy Thank you for your help. |
Hi ... same issue, the hack of [illiterati] is good for the returning to the top, but onload and on resize don't work ... plz this plugin is so cool ... the world NEED IT |
Best solution, my issue fixed: |
@Mohitgold, |
@abvas
|
@Mohitgold, |
Nice Plugin ! |
@Mohitgold |
on Windows.. basic setup no params, had to find another solution. good luck guys! |
It seems that the current version 1.4.6 broke something. The working version is 1.4.4. So change your package.json like this:
After you changed your package.json and before your make your
After these steps do your |
@emha |
You just have to change you package.json. If you don't use npm/yarn you have to go back to UPDATE |
This is a small PR that fixes the jump for me: #62 And this is a PR that includes this, plus a lot of var cleanup: #63 However, the jump still happens sometimes, and I haven't tested all of the use cases to see if this break anything else. It probably needs more work, but I'm out of time at the moment. |
@emha Actually, Version "1.4.4" does not have this problem. Reverted back temporarily to solve the issue and waiting until a solution is released. @srevenant already pointed out on the PR, this breaks the background parallax needs to be tested before merging. |
I was having this problem in 2020 also… using the 1.4.1 fixed my problems, thanks @emha ! |
Lovely plugin! I have a simple 2 full width containers with backgrounds, I set up the parallax vertically on the second container (which is below the first one.), the moment you start scrolling, the 2d container jumps down a distance before it starts smoothly parallax. is it a bug? thanks
I am using the latest version 1.4.6.
The text was updated successfully, but these errors were encountered: