Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Perhaps this is more what you're looking for, then? I'm leaving my existing answer alone so the comments to it don't get confusing.</p> <p>Another jsfiddle: <a href="http://jsfiddle.net/jjordanca/NYpbS/" rel="nofollow">http://jsfiddle.net/jjordanca/NYpbS/</a></p> <p><strong>HTML</strong></p> <pre><code>&lt;ul id="email"&gt; &lt;li&gt; &lt;div class="green" style="width:180px;height:180px;background-color:green"&gt;&lt;/div&gt; &lt;div class="red" style="width:250px;height:200px;margin-left:5px;background-color:red"&gt;&lt;/div&gt; &lt;/li&gt; &lt;/ul&gt; </code></pre> <p><strong>CSS</strong></p> <pre><code>#email { list-style:none; margin:100px 0; height:550px; } #email li{ display: block; -webkit-perspective: 500px; -moz-perspective: 500px; position: relative; width: 100%; height: 100%; -moz-transform-origin: 25% 50%; -webkit-transform-origin: 25% 50%; } #email:hover li .green { -webkit-transform-style: preserve-3d; -moz-transform-style: preserve-3d; -webkit-transform: translateZ(50px); -moz-transform: translateZ(50px); -webkit-transition-property: transform; -webkit-transition-duration: 1s; -moz-transition-property: transform; -moz-transition-duration: 1s; } #email:hover li .red { -webkit-transform-style: preserve-3d; -moz-transform-style: preserve-3d; -webkit-transform: translateZ(-50px); -moz-transform: translateZ(-50px); -webkit-transition-property: transform; -webkit-transition-duration: 1s; -moz-transition-property: transform; -moz-transition-duration: 1s; } #email li div { display: block; position: absolute; -moz-box-shadow:0 3px 10px #888; -webkit-box-shadow:0 3px 10px #888; } #email li .green { -webkit-transform-style: preserve-3d; -moz-transform-style: preserve-3d; -webkit-transform: translate3d(-100px, -100px, -100px); -moz-transform: translate3d(-100px, -100px, -100px); } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload