Skip to content

Instantly share code, notes, and snippets.

@kizu
Created January 15, 2012 13:44
Show Gist options
  • Save kizu/1615901 to your computer and use it in GitHub Desktop.
Save kizu/1615901 to your computer and use it in GitHub Desktop.
Arc movement
/* Arc movement */
.wrapper {
width: 500px;
margin: 300px 0 0;
transition: all 1s;
transform-origin: 50% 50%;
}
.inner {
display: inline-block;
padding: 1em;
transition: transform 1s;
background: lime;
}
html:hover .wrapper {
transform: rotate(180deg);
}
html:hover .inner {
transform: rotate(-180deg);
}
<div class="wrapper">
<div class="inner">Hover me</div>
</div>
{"view":"split-vertical","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment