Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Forked from kizu/dabblet.css
Created May 16, 2013 22:13
Show Gist options
  • Save Shelob9/5595535 to your computer and use it in GitHub Desktop.
Save Shelob9/5595535 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