Created
July 1, 2013 08:58
-
-
Save leechy/5899398 to your computer and use it in GitHub Desktop.
3D Wheel of Fortune
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
/** | |
* 3D Wheel of Fortune | |
*/ | |
.pers { | |
width: 500px; | |
height: 500px; | |
background: lightblue; | |
perspective: 2000px; | |
perspective-origin: 50% 50%; | |
} | |
.item { | |
position: absolute; | |
width: 100px; | |
height: 100px; | |
} | |
.item1 { | |
transform: translate(200px, 150px) rotateY(10deg) rotateX(-185deg) translateZ(400px); | |
background: pink; | |
} | |
.item2 { | |
transform: translate(200px, 150px) rotateY(10deg) rotateX(0deg) translateZ(400px); | |
background: blue; | |
} | |
.item3 { | |
transform: translate(200px, 150px) rotateY(10deg) rotateX(-15deg) translateZ(400px); | |
background: red; | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<div class="pers"> | |
<div class="item item1">текст</div> | |
<div class="item item2">текст</div> | |
<div class="item item3">текст</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
// alert('Hello world!'); |
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
{"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