I have a very complex issue and it's not going to be easy explaining it, but here I go:
I am making a parallax effect, and I have several images, layered over one another. In some of these layers, I want to have clickable buttons (the transformations I apply on my layers must also be applied on the button).
This is what the parallax looks like, DOM-wise:
<div class="parallax">
<div class="parallax-layer" data-depth="0.9" data-layer="2">
<div class="button" data-chapter="1">
The Button
</div>
</div>
<div class="parallax-layer" data-depth="1.0" data-layer="1">
</div>
</div>
The Parallax plugin I use uses 3d transforms, but only moves the layers through the x/y axises. The problem with this is that depending on the layers heights, the button can be covered by the layers above him, and it becomes impossible to click on it, even if it is visible (backgrounds are PNGs with transparency).
Currently, the solution I implemented consists on adding a transform on the "button" div, and moving it forward using the z axis. This solution works on Chrome and Firefox, but doesn't change anything on Safari or Internet Explorer 8/9/10.
I'm looking for an alternative. Any suggestions for something that would be easy to implement ?