-
Notifications
You must be signed in to change notification settings - Fork 825
Parallax doesn't work #225
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
Comments
try: <div class="parallax-window" >
<div class="parallax-slider">
<img src="../assets/img/horizon2020.jpg">
</div>
<div class="static-content">
<h1 style="position:absolute; top: 400px; left: 400px;">Some Text</h1>
</div>
</div> and: $('.parallax-window').parallax({
naturalWidth: 600,
naturalHeight: 400
}); Note: using the data-attribute If you want to have static Elements in front of the moving parallax, it won't work with data-attributes (which is only for simple use). In that case you need to initialize manually. Basically the javascript function will look for any ".parallax-slider" element within the element it is called on (can also have a different class than "parallax-window"), remove the slider from there and move it to a so called "mirror" Element. Therefore, if you want to "leave" some static content behind, you need to put it outside the parallax-slider. I hope this helps! |
any news on that? otherwise i'm closing |
Yes, thank you!!! Now make more sense. |
Uh oh!
There was an error while loading. Please reload this page.
Hello everybody!
After one hour working with this plugin I couldn't make it work. I can't see the image and almost anything.
I'd like to have the image in background and put elements over it
Here it's my code, if someone helps me I'll be very happy.
The text was updated successfully, but these errors were encountered: