Created
February 16, 2014 08:34
-
-
Save tohansg/9031190 to your computer and use it in GitHub Desktop.
Untitled
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
#div1 | |
{ | |
position: relative; | |
height: 200px; | |
width: 200px; | |
margin: 50px; | |
padding:10px; | |
border: 1px solid black; | |
} | |
#div2 | |
{ | |
padding:50px; | |
position: absolute; | |
border: 1px solid black; | |
background-color: red; | |
transform: rotate(5deg); | |
transform-origin:20% 40%; | |
-ms-transform: rotate(45deg); /* IE 9 */ | |
-ms-transform-origin:20% 40%; /* IE 9 */ | |
-webkit-transform: rotate(45deg); /* Safari and Chrome */ | |
-webkit-transform-origin:100% 100%; /* Safari and Chrome */ | |
transition:all 1s; | |
} |
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="div1"> | |
<div id="div2">HELLO</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":"separate","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