-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwater.css
64 lines (61 loc) · 1.44 KB
/
water.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#water__level {
background-color: #626262;
-webkit-mask-image: url(water_mask2.png);
mask-image: url(water_mask2.png);
-webkit-mask-size: 100% 100%;
mask-size: 100% 100%;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
position: relative;
overflow: hidden;
}
.water__level__container,
.cap__container {
--total-water: 4;
--current-water: 4;
--water-height: calc(85% - 83% * var(--current-water) / var(--total-water));
width: 100%;
height: 100%;
background-image: url("water.png");
background-size: 400% 100%;
background-repeat: repeat-x;
filter: invert(52%) sepia(96%) saturate(329%) hue-rotate(170deg)
brightness(91%) contrast(103%);
animation: moveWater 5s linear infinite;
position: absolute;
top: var(--water-height);
left: 0;
transition: 0.2s;
/* display: flex; */
/* align-items: center; */
/* justify-content: center; */
/* text-align: center; */
/* font-size: 5rem; */
/* color: black; */
/* font-family: 'LHR Firehouse'; */
}
.cap__container {
background-image: url("x.png");
background-size: 100% 100%;
background-repeat: no-repeat;
filter: none;
animation: none;
position: absolute;
top: 0%;
left: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 5rem;
color: white;
font-family: "LHR Firehouse";
padding-left: 10px;
}
@keyframes moveWater {
0% {
background-position: 0 0;
}
100% {
background-position: -400% 0;
}
}