5

I have two divs inside a wrapper-div. The first one is positioned in front of the wrapper via translate3d(50px, 50px, 50px), the second is positioned behind the wrapper via translate3d(50px, 50px, -50px).

I want to bind click-events to the inner-divs but i can't click the div which is positioned behind the wrapper. Does anybody know a solution for this problem?

js-fiddle (webkit only): http://jsfiddle.net/rttmax/zrgdQ/16/

thanks. rttmax

rttmax
  • 344
  • 1
  • 12

1 Answers1

4

You have to give your wrapper DIV a positive 50px Z value in order to compensate for the negative 50px.

http://jsfiddle.net/zrgdQ/108/

woot
  • 3,671
  • 4
  • 26
  • 39
  • 1
    This needs to be marked as the answer. Exactly what I was needing to fix my transform in Chrome and Safari. – iamface Sep 24 '14 at 16:55