html - Elements within a face of a 3d css cube cannot be selected. Strange -


i building 3d css cube menu. code here.

<button id="btn">flip button</button>     <div class="signup-viewport">     <div id="cube" class="cube animation">         <div class="front">front <a href="">front link</a></div>         <div class="back">back</div>         <div class="left">left</div>         <div class="right">right <a href="">right link</a></div>         <div class="bottom">bottom</div>         <div class="top">top</div>     </div> </div> 

when face flipped 'flip button' button, link right side of cube cannot clicked.

any ideas why? in firefox link works, on chrome , chromium not.

it's because surfaces had height of 0, causing text rendered padding area. firefox , chrome seem treat such elements differently in terms of mouse events.

if use height: auto, works expected, should take care heights remain consistent changing content.

here's modified jsfiddle demonstrating it.

update:

apparently, chrome behaves differently on different os' (or versions).

however, problem seems related 3d nature of transformations (transform-style: preserve-3d). when setting explicit perspective, works on machine, though still bit shaky.

updated jsfiddle

you might notice looks bit blurry now, since 3d transforms "detach" content pixel grid virtually lifting planes closer viewer.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -