Created
April 21, 2012 19:42
-
-
Save ntlk/2439268 to your computer and use it in GitHub Desktop.
Sea 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
/** | |
* Sea waves | |
*/ | |
#sky { | |
width: 100%; | |
height: 600px; | |
position: fixed; } | |
#sea { | |
width: 120%; | |
height: 100px; | |
position: fixed; | |
top: 200px; | |
background: | |
/*radial-gradient(50% 100%, circle, transparent 20%, rgba(255,255,255,.3) 21%, rgba(255,255,255,.3) 34%, transparent 35%, transparent),*/ | |
radial-gradient(50% 0%, circle, rgba(255,255,255,.3) 21%, rgba(255,255,255,.3) 34%, transparent 15%) 0 0px; | |
background-color: slategray; | |
background-size:60px 100px; | |
animation: waves 2s ease-out, sideways 4s ease-in-out; | |
animation-iteration-count: infinite; | |
animation-direction: alternate; } | |
@keyframes waves { | |
0% { background-size: 50px 150px; | |
} | |
100% { background-size: 50px 90px; | |
} | |
} | |
@keyframes sideways { | |
0% { left: 20px; } | |
100% { left: -20px; } | |
/*100% { left: 20px; }*/ | |
} | |
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="sea"></div> | |
<div id="sky"></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","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment