Skip to content

Instantly share code, notes, and snippets.

@dumaurier
Created January 31, 2012 16:41
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 dumaurier/1711490 to your computer and use it in GitHub Desktop.
Save dumaurier/1711490 to your computer and use it in GitHub Desktop.
Transitioning & Animation The Same Property - You can't!
/**
* Transitioning & Animation The Same Property - You can't!
*/
*{transition:all 1s ease;}
@keyframes move{
0%{height:200px;width:200px;}
50%{height:300px;width:300px;}
}
div{
display:block;
height:200px;
width:200px;
background:#ff6;
animation-name:'move';
animation-duration: 10s;
animation-iteration-count: infinite;
animation-timing-function:ease-in-out;
}
div:hover{
width:400px;
background:red;
}
{"view":"split","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment