Created
January 22, 2012 14:53
-
-
Save oli/1657290 to your computer and use it in GitHub Desktop.
Animation without 0% or 100% keyframes
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
/* Animation without 0% or 100% keyframes */ | |
/* @estellevw sez this can sometimes be buggy */ | |
/* ref: https://twitter.com/estellevw/status/40528526541066240 */ | |
@keyframes middling {50% {background-color: #777;}} | |
div { | |
width: 144px; | |
height: 48px; | |
margin: 24px; | |
border: 5px solid #999; | |
border-radius: 5px; | |
padding: 3px; | |
} | |
div:hover {animation: middling 3s;} | |
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
<h1>Animation with no 0% or 100% keyframes</h1> | |
<div>hover me</div> | |
<p>Works as expected in Chrome 16, Safari 5.1.2, Firefox 9</p> |
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","fontsize":"90","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment