-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
54 lines (51 loc) · 1.11 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
body {
height: 100vh;
margin: 0;
display: grid;
place-items: center;
background-image: linear-gradient(
rgba(17, 17, 17, 0), rgba(68, 68, 68, 0)
);
}
:root {
--color-primary: white;
--color-second: #5cd1f7;
}
p {
font-size: 10rem;
font-family: "Concert One", sans-serif;
font-weight: 400;
font-style: normal;
text-transform: uppercase;
color: var(--color-primary);
-webkit-text-stroke: 2px var(--color-second);
text-stroke: 2px var(--color-second);
text-shadow: 1px 1px 5px var(--color-second);
}
.bubble {
aspect-ratio: 1/1;
border-radius: 50%;
background-image: radial-gradient(at 50% 100%, var(--color-primary) 20%, var(--color-second));
box-sizing: border-box;
position: absolute;
bottom: 10px;
opacity: 0;
animation: grow 3s ease-in-out infinite;
}
@keyframes grow {
0% {
opacity: 0;
transform: scale(0);
}
25% {
opacity: 1;
transform: scale(5);
}
50% {
transform: scale(10);
}
100% {
opacity: 0;
transform: translateY(-200%) translateX(calc(100% * var(--direction))) scale(20);
}
}