Created
January 31, 2012 16:41
-
-
Save dumaurier/1711490 to your computer and use it in GitHub Desktop.
Transitioning & Animation The Same Property - You can't!
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
/** | |
* 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; | |
} | |
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></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