Created
January 31, 2012 16:24
-
-
Save dumaurier/1711416 to your computer and use it in GitHub Desktop.
Animate and Transition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div><p>Some Text</p></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment