Skip to content

Instantly share code, notes, and snippets.

@dziudek
Created August 11, 2012 10:54
Show Gist options
  • Save dziudek/3323802 to your computer and use it in GitHub Desktop.
Save dziudek/3323802 to your computer and use it in GitHub Desktop.
Nice CSS 3D animation
/**
* Nice CSS 3D animation
*/
body {
perspective: 1400;
}
#box {
background: #d45;
height: 100px;
transform: rotateY(110deg) translateX(100px);
width: 100px;
transition: transform 0.3s ease-out;
}
#box:hover {
transform: rotateY(0deg) translateX(0);
}
<!-- content to be placed inside <body>…</body> -->
<div id="box">Text ;)</div>
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment