Skip to content

Instantly share code, notes, and snippets.

@luiz
Created November 28, 2014 17:34
Show Gist options
  • Save luiz/107257d35b813d81043a to your computer and use it in GitHub Desktop.
Save luiz/107257d35b813d81043a to your computer and use it in GitHub Desktop.
transform order test
/* 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);
}
<div id="fora"></div>
<div id="dentro"></div>
// alert('Hello world!');
{"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