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

Not changing with scrolling when using bootstrap #125

Open
runarorested opened this issue May 13, 2024 · 0 comments
Open

Not changing with scrolling when using bootstrap #125

runarorested opened this issue May 13, 2024 · 0 comments

Comments

@runarorested
Copy link

Greetings

I'm using bootstrap to make a web based on slides, each with a background and a foreground layer, both using the whole screen. The background layer sits behind and does contain a background image or video. The foreground contains text. Here is a cut down example:

https://codepen.io/Ruben-Martinez-Cabello/pen/LYoEMox

I wan't to add a certain movement in the background layer, but I've tried several other parallax effects, and they do not work, unless the divs with the background are directly under the body (I think because they use window.pageYOffset instead of document.documentElement.scrollTop).

Your library seems to allow to do so because you can suposedly define a customContainer (a parent for all the parallaxed elements?) to use as a base, but you don't document how to go from there. The image or video should hang from the customContainer? in the samples, the images seems to be put however you please. Should I use a wrapper or not?

As far as I know it must not be too bad since the JS installs itself and runs, which can be seen since it does make the images/videos bigger, but when I scroll, the backgrounds are fixed.

I've seen other issues about resizing badly with bootstrap due to horizontal overflow or sizing, but I don't know if this is the same bug or a new one.

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