Created
May 9, 2016 00:04
-
-
Save scott2449/a6ddf6fd34b3dfbfd183790b32d88177 to your computer and use it in GitHub Desktop.
waves
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
.bottom{ | |
bottom: -225px; | |
animation: waves 999999999s cubic-bezier(0,.25,1,.75) infinite; | |
} | |
.middle{ | |
bottom: -125px; | |
animation: bwaves 450000s linear infinite; | |
} | |
.top{ | |
bottom: -25px; | |
animation: waves 450000s cubic-bezier(.25,.25,.75,.75) infinite; | |
} | |
.water{ | |
background-image: url("http://dev.modernassemb.ly/smashingmagazine/waveimage/img/wave.png"); | |
width: 100%; | |
height: 100%; | |
background-repeat: repeat-x; | |
position: absolute; | |
} | |
@keyframes waves { | |
from { background-position: 0 0; } | |
to { background-position: -99999999px 0; } | |
} | |
@keyframes bwaves { | |
from { background-position: 0 0; } | |
to { background-position: 99999999px 0; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment