Created
October 28, 2011 20:15
-
-
Save geoffyoungs/1323427 to your computer and use it in GitHub Desktop.
Animated graduated background
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
@-webkit-keyframes pulsate { | |
0% { | |
background-position: 0 0; | |
} | |
100% { | |
background-position: 300px 0; | |
} | |
} | |
div.animated { | |
-webkit-animation-name: pulsate; | |
-webkit-animation-duration: 1s; | |
-webkit-animation-iteration-count: infinite; | |
-webkit-animation-timing-function: linear; | |
background-position: 0px 0px; | |
background-size: 100% 2px; | |
background-repeat: repeat; | |
background-image: -webkit-gradient(linear, left bottom, right bottom, color-stop(0, #ffffff), color-stop(0.4, #80b256), color-stop(0.6, #80b256), color-stop(1.0, #ffffff)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@lukestuts - here's that code.