<div class="ocean">
<div class="wave"></div>
</div>
html,
body {
height: 100%;
}
body {
background:#433388;
overflow: hidden;
}
.ocean {
height: 5%;
width: 100%;
position: absolute;
bottom: 0;
left: 0;
background: #6b5da4;
}
.wave {
background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/756881/wavePurple.svg) repeat-x;
position: absolute;
bottom: -10px;
width: 6400px;
height: 198px;
animation: wave 12s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite, swell 8s ease -1.25s infinite;;
transform: translate3d(0, 0, 0);
}
@keyframes wave {
0% {
margin-left: 0;
}
100% {
margin-left: -1600px;
}
}
@keyframes swell {
0%,
100% {
transform: translate3d(0, -40px, 0);
}
50% {
transform: translate3d(0, -10px, 0);
}
}
.endWave{
display:none;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.