Skip to content

Instantly share code, notes, and snippets.

@dumaurier
Created January 31, 2012 16:24
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/1711416 to your computer and use it in GitHub Desktop.
Save dumaurier/1711416 to your computer and use it in GitHub Desktop.
Animate and Transition
/**
* Animate and Transition
*/
@-webkit-keyframes move{
0%{height:200px;width:200px;}
50%{height:300px;width:300px;}
}
div{
position:relative;
display:block;
height:200px;
width:200px;
background:#ff6;
animation-name:'move';
animation-duration: 10s;
animation-iteration-count: infinite;
animation-timing-function:ease-in-out;
transition:background .3s linear;
}
div:hover{
background:#ff6600;
}
p{
text-align:center;
font-family:sans-serif;
font-weight:600;
padding-top:90px
}
<div><p>Some Text</p></div>
{"view":"split","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment