Created
November 28, 2014 17:34
-
-
Save luiz/107257d35b813d81043a to your computer and use it in GitHub Desktop.
transform order test
This file contains hidden or 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
/* transform order test */ | |
html,body { | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
} | |
div { | |
width: 100px; | |
height: 100px; | |
background: red; | |
border-radius: 10% 50% / 50% 10%; | |
transition: .5s; | |
} | |
#fora { | |
transform: rotate(0deg) translateX(100px); | |
} | |
#dentro { | |
transform: translate(100px) rotate(0deg); | |
} | |
body:hover #fora { | |
transform: rotate(45deg) translateX(100px); | |
} | |
body:hover #dentro { | |
transform: translateX(100px) rotate(45deg); | |
} |
This file contains hidden or 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="fora"></div> | |
<div id="dentro"></div> |
This file contains hidden or 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 hidden or 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-vertical","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