Created
April 2, 2012 07:25
-
-
Save hydrangeas/2281382 to your computer and use it in GitHub Desktop.
2012-04-02
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#container{ | |
-webkit-perspective: 200px; | |
} | |
#stage{ | |
-webkit-transform-style: preserve-3d; | |
} | |
#shape{ | |
-webkit-transform-style: preserve-3d; | |
} | |
#panel{ | |
-webkit-transform-style: preserve-3d; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#container{ | |
margin: 100px 0 0 200px; | |
width : 200px; | |
height: 200px; | |
display: block; | |
border: #ccc 1px solid; | |
-webkit-perspective: 200px; | |
} | |
#stage{ | |
-webkit-transform-style: preserve-3d; | |
} | |
#shape{ | |
-webkit-transform-style: preserve-3d; | |
-webkit-transform: translateZ(100px) rotateY(30deg); | |
} | |
#panel{ | |
width : 200px; | |
height: 200px; | |
display: block; | |
background-color: blue; | |
-webkit-transform-style: preserve-3d; | |
-webkit-transform: translateZ(-250px); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="container"> | |
<div id="stage"> | |
<div id="shape"> | |
<div id="panel"></div> | |
</div> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(window, undefined) { | |
var panel = window.document.getElementById('panel'); | |
panel.addEventListener('click', function(event) { | |
console.log('clicked panel'); | |
event.preventDefault; | |
}, true); | |
console.log('starting..'); | |
})(window); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment