Comments (13)
It appears to work fine in Safari 8 and Chrome 41. Which browser are you having trouble with?
from parallax.js.
Chrome Version 41.0.2272.76 (64-bit)
Same problem using Chrome on Debian linux or chromium browser and Chrome on Widonws 7 64bit.
Screenshot : http://www.romaindauby.fr/export.png
from parallax.js.
Strange. I'm running the exact same version of Chrome on OSX and I cannot replicate the issue. I'll have to check it out again next time I'm near a windows machine.
from parallax.js.
I have the same problem using Chrome on MacBookPro
from parallax.js.
I have the very same issue on Mac OS X 10.10.2, Google Chrome 41.0.2272.101. Can't reproduce in Mozilla Firefox.
Problem seems to go away when I override the z-index property of element div.parallax-mirror with a non-negative value (for example 0).
Adding a screenshot just for reference: http://i.imgur.com/KMzgJdU.png
from parallax.js.
Hey th0th thanks for the hint. Just tried to reset the zIndex in the parallax JS and it works fine. Are you aware of any unwanted impacts besides not being able to layer in the negative values?
from parallax.js.
@SaltTank Glad it helped. In my case, the div element after the .parallax-window was messed (it was under the parallax image i used). I had to set position: relative; z-index: 2; to get it over parallax image.
from parallax.js.
@th0th & @SaltTank Seems that for me this fixed the issue, but it also introduced another. Content inside the parallax window now does not show. Did you have this problem at all @SaltTank?
from parallax.js.
@th0th & @SaltTank I figured it out. Thanks @th0th.
I actually had to implement both of your solutions. Changing the zIndex value to 0 allows the modal to stack on top, and setting position:relative and z-index:2 made the element inside the parallax window stack on top.
from parallax.js.
@IsaacNeal Can you be more precise of which z-index you set to 0 and wich position:relative and z-index:2 you set ?
Thanks.
from parallax.js.
@r0mdau in parallax.js search for "parallax-mirror". The first bit of code you will find is:
addClass("parallax-mirror").css({visibility:"hidden",zIndex:-100,position:"fixed",top:0,left:0,overflow:"hidden"})
Change -100 to 0 for the zIndex.
The elements you need to set to relative position and z-index 2 are any elements you want to display content inside of .parallax-window.
In my case, I have a div with class .content-wrapper inside the .paralax-window. Your's would obviously be something different.
from parallax.js.
@IsaacNeal ok thank you ;)
from parallax.js.
closed antiquated issue for cleanup. if this is still rellevant, feel free to reopen.
from parallax.js.
Related Issues (20)
- text-align affects background location
- .trigger('resize').trigger('scroll') not working HOT 3
- iOS 13 issue with inner HTML HOT 2
- CDN version outdated HOT 2
- Using a semi-transparent container over background image lag HOT 1
- Resize does the exact opposite
- Using "sticky"element offsets parallax container HOT 3
- Add alt attribute? HOT 3
- Vanilla JS version? HOT 2
- V. 1.5 works on mobile devices, but this v. 2.0 does not?
- Flash on image load
- is it possible to put text on the images with html for the effect? HOT 2
- Setting speed to negative value does not reverse parallax effect
- Feature request: Support responsive images
- Parallax 2.0 not working on mobile HOT 1
- Does not work with Angular Universal HOT 2
- parallax.js limits width?! HOT 1
- Feature Request: Can you have a video parallax as well?
- Parallax is not a function
- Doesn't work properly when using it with Bootstrap
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parallax.js.