Skip to content

Instantly share code, notes, and snippets.

@chestozo
Created November 17, 2012 19:48
Show Gist options
  • Select an option

  • Save chestozo/4099371 to your computer and use it in GitHub Desktop.

Select an option

Save chestozo/4099371 to your computer and use it in GitHub Desktop.
Untitled
.me {
position: absolute;
width: 20px;
height: 20px;
background: #55F;
border-radius: 15px;
border: 3px solid #FFF;
box-shadow: 0px 0px 10px #AAA, inset 0px 0px 10px #33C;
left: 200px;
top: 200px;
animation-name: float;
animation-duration: 1.5s;
animation-iteration-count: infinite;
}
.more {
position: absolute;
animation-name: float-y;
animation-duration: 1.2s;
animation-iteration-count: infinite;
animation-timing-function: ease-in-out
}
@keyframes float {
0% { margin-left: 0px; }
50% { margin-left: -2px; }
100% { margin-left: 0px; }
}
@keyframes float-y {
0% { margin-top: 0px; }
50% { margin-top: 2px; }
100% { margin-top: 0px; }
}
<div class="more">
<div class="me"></div>
</div>
{"view":"split-vertical","fontsize":"70","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment