-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyles.css
43 lines (40 loc) · 891 Bytes
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.waves-container {
position: fixed;
bottom: 0;
left: 0;
right: 0;
width: 100%;
height: 0;
background-color: #9ce3f995;
z-index: 2147483647;
animation: move-up var(--animation-duration) linear;
transform-origin: bottom;
}
.fish-animate {
position: absolute;
bottom: 1;
left: -1;
animation: fish-swim 25s infinite linear;
}
@keyframes move-up {
from {
height: 0%;
}
to {
height: 100%;
}
}
@keyframes fish-swim {
0% {
transform: translateX(-90px) scaleX(-1); /* Swim left to right */
}
49.99% {
transform: translateX(calc(100vw + 70px)) scaleX(-1); /* Flip fish*/
}
50% {
transform: translateX(calc(100vw + 70px)) scaleX(1); /* Swim right to left */
}
100% {
transform: translateX(-90px) scaleX(1); /* Swim left to right */
}
}