Created
July 18, 2012 16:50
-
-
Save tiborsaas/3137409 to your computer and use it in GitHub Desktop.
Pulsating image with Chrome CSS3 filters
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
/** | |
* Pulsating image with Chrome CSS3 filters | |
*/ | |
html { | |
background: linear-gradient( 70deg, #fff, #666 ); | |
min-height: 100%; | |
} | |
@keyframes color-pulsate{ | |
0% { -webkit-filter: hue-rotate(0deg) saturate(20%) } | |
50% { -webkit-filter: hue-rotate(3600deg) saturate(150%) } | |
100% { -webkit-filter: hue-rotate(0deg) saturate(20%) } | |
} | |
#icon{ | |
width: 128px; | |
height: 128px; | |
margin: 200px auto; | |
background-image: url( http://cdn1.iconfinder.com/data/icons/macosxstyle/macosxstyle_png/128/iSync.png ); | |
animation: color-pulsate 25s infinite linear; | |
} | |
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 id="icon"> </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-vertical","fontsize":"80","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment