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

Third parallax doesn't work as wish #134

Open
RandyLiu6410 opened this issue Dec 2, 2024 · 0 comments
Open

Third parallax doesn't work as wish #134

RandyLiu6410 opened this issue Dec 2, 2024 · 0 comments

Comments

@RandyLiu6410
Copy link

I have three parallax elements being initialized in a single parallax instance. First and second parallax elements move when the wrappers are into viewport and stop move when the wrappers are outside of the viewport. However, the third parallax element moves to maximum distance and stop moving when almost 1/3 of the wrapper is into the viewport.

version: 5.6.2

First parallax

CleanShot.2024-12-03.at.01.11.06.mp4

Second parallax

CleanShot.2024-12-03.at.01.12.08.mp4

Third parallax

CleanShot.2024-12-03.at.01.12.51.mp4

I use vanilla js:

  document.addEventListener("DOMContentLoaded", function () {
      new simpleParallax(document.querySelectorAll(".parallax-image"), {
        delay: 0,
        scale: 1.25,
        orientation: "down",
        overflow: true,
      });
  });
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