54 lines
929 B
CSS
54 lines
929 B
CSS
|
|
.ocean {
|
||
|
|
position: absolute;
|
||
|
|
bottom: 0;
|
||
|
|
left: 0;
|
||
|
|
width: 100%;
|
||
|
|
height: 30vh;
|
||
|
|
overflow: hidden;
|
||
|
|
background: #4fc3f7; /* color del mar */
|
||
|
|
z-index: -1; /* para que quede atrás del contenido */
|
||
|
|
}
|
||
|
|
|
||
|
|
.wave {
|
||
|
|
position: absolute;
|
||
|
|
bottom: 0;
|
||
|
|
width: 200%;
|
||
|
|
height: 100%;
|
||
|
|
background: rgba(255, 255, 255, 0.5);
|
||
|
|
border-radius: 100% 50%;
|
||
|
|
animation: waveMove 8s linear infinite;
|
||
|
|
}
|
||
|
|
|
||
|
|
.wave:nth-child(2) {
|
||
|
|
background: rgba(255, 255, 255, 0.3);
|
||
|
|
animation-duration: 10s;
|
||
|
|
animation-delay: -2s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.wave:nth-child(3) {
|
||
|
|
background: rgba(255, 255, 255, 0.2);
|
||
|
|
animation-duration: 12s;
|
||
|
|
animation-delay: -4s;
|
||
|
|
}
|
||
|
|
|
||
|
|
@keyframes waveMove {
|
||
|
|
0% {
|
||
|
|
transform: translateX(0) translateY(0);
|
||
|
|
}
|
||
|
|
50% {
|
||
|
|
transform: translateX(-25%) translateY(5%);
|
||
|
|
}
|
||
|
|
100% {
|
||
|
|
transform: translateX(0) translateY(0);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 800px) {
|
||
|
|
.ocean {
|
||
|
|
background: transparent;
|
||
|
|
}
|
||
|
|
.wave {
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
}
|