Skip to content

Instantly share code, notes, and snippets.

@licson
Created May 3, 2013 14:53
Show Gist options
  • Select an option

  • Save licson/5509603 to your computer and use it in GitHub Desktop.

Select an option

Save licson/5509603 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
@keyframes animation {
from {
transform: translateX(0px);
}
60% {
transform: translateX(82px);
}
to {
transform: translateX(0px);
}
}
#box {
width: 25%;
height: 5em;
background: #ff9900;
animation: animation 2s infinite;
margin: auto;
}
<!-- content to be placed inside <body>…</body> -->
<h1>CSS animations - example #1</h1>
<div id="box"></div>
// alert('Hello world!');
{"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