Skip to content

Instantly share code, notes, and snippets.

@MarcoPolo
Created June 4, 2012 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarcoPolo/2869901 to your computer and use it in GitHub Desktop.
Save MarcoPolo/2869901 to your computer and use it in GitHub Desktop.
Move in a circle without wrapper elements
/**
* Move in a circle without wrapper elements
* Idea by Aryeh Gregor, simplified by Lea Verou
*/
@keyframes rot {
from{
transform: translate3d(450px,0,0);
}
}
.smile {
width: 40px;
height: 40px;
position: absolute;
top: 200px;
//left: 700px;
left: 250px;
margin: -20px;
font-size: 100px;
transition: transform 1s ease-in-out;
transform: translate3d(450px, 0,0);
//animation: trans 2s ease-in;
}
<div class="smile">☺</div>
{"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