Skip to content

Instantly share code, notes, and snippets.

@eduardochiaro
Created February 22, 2012 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eduardochiaro/1885745 to your computer and use it in GitHub Desktop.
Save eduardochiaro/1885745 to your computer and use it in GitHub Desktop.
Google's Wave Doodle
@keyframes wave
{
0% {background-position: 0px 0px}
100% {background-position: -388px 0px}
}
@-moz-keyframes wave /* Firefox */
{
0% {background-position: 0px 0px}
100% {background-position: -388px 0px}
}
@-webkit-keyframes wave /* Safari and Chrome */
{
0% {background-position: 0px 0px}
100% {background-position: -388px 0px}
}
#wave{
width:388px;
height:223px;
margin: 100px auto 10px auto;
border:1px #000000 dashed;
background: url('https://img.skitch.com/20120222-fee2prgm5eyuipa3pdm281brif.jpg') top left repeat-x;
animation: wave 3.5s;
-moz-animation: wave 3.5s; /* Firefox */
-webkit-animation: wave 3.5s; /* Safari and Chrome */
animation-iteration-count: infinite;
animation-timing-function: linear;
-moz-animation-iteration-count: infinite;
-moz-animation-timing-function: linear;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment