-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
115 lines (98 loc) · 1.8 KB
/
style.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
.center {
text-align: center;
}
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400&display=swap');
body {
overflow: hidden;
margin: 0;
padding: 0;
font-family: 'Roboto', sans-serif;
}
h1 {
font-size: 18vh;
color: #3b3b3b;
}
h2 {
font-size: 4vw;
color: #fff;
}
.author-div {
position: relative;
}
.author-div p {
position: absolute;
bottom: 45px;
right: 10px;
margin: 0;
color: white;
font-size: 1.5vh;
font-weight: bold;
}
#container {
position: relative;
width: 100%;
height: 55vh;
display: flex;
justify-content: center;
align-items: center;
background: url(bg.png);
background-size: cover;
flex-direction: column;
}
.swell-div h2 {
margin-bottom: -5%;
}
.wave {
position: absolute;
width: 100%;
padding-top: 12%;
top: -5px;
left: 0;
background-image: url(wave.png);
background-repeat: repeat-x;
background-size: 100%;
animation: wave 8s linear infinite;
}
.wave::before {
content: '';
position: absolute;
width: 100%;
padding-top: 12%;
top: -5px;
left: 0;
background-image: url(wave.png);
background-repeat: repeat-x;
background-size: 100%;
opacity: .2;
animation: wave-reverse 8s linear infinite;
}
.wave::after {
content: '';
position: absolute;
width: 100%;
padding-top: 12%;
top: -5px;
left: 0;
background-image: url(wave.png);
background-repeat: repeat-x;
background-size: 100%;
opacity: .8;
animation-delay: -4s;
animation: wave 16s linear infinite;
}
@keyframes wave {
0% {
background-position: 0;
}
100% {
background-position: 100vw;
}
}
@keyframes wave-reverse {
0% {
background-position: 100vw;
}
100% {
background-position: 0;
}
}