-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathday89.html
More file actions
99 lines (85 loc) · 1.72 KB
/
day89.html
File metadata and controls
99 lines (85 loc) · 1.72 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DAY 89 | CSS CHALLENGE</title>
<style>
@import url(https://fonts.googleapis.com/css?family=Montserrat);
*,
*::after,
*::before {
padding: 0;
margin: 0;
box-sizing: border-box;
}
main {
display: grid;
place-items: center;
min-height: 100vh;
font-family: Montserrat, sans-serif;
background: #fdfdfd;
}
.loading {
zoom: 1.5;
}
.text {
color: #febd01;
display: inline-block;
font-weight: 600;
margin-left: 5px;
width: 11ch;
animation: loading 2s steps(25) infinite alternate;
overflow: hidden;
white-space: nowrap;
}
.ball {
position: relative;
display: inline-block;
height: 37px;
width: 15px;
}
.ball::before {
content: '';
position: absolute;
display: block;
top: 0;
width: 15px;
height: 15px;
border-radius: 50%;
background-color: #febd01;
transform-origin: 50%;
animation: bounce 500ms alternate infinite ease;
}
@keyframes bounce {
0% {
top: 30px;
height: 5px;
border-radius: 60px 60px 20px 20px;
transform: scaleX(2);
}
35% {
height: 15px;
border-radius: 50%;
transform: scaleX(1);
}
100% {
top: 0;
}
}
@keyframes loading {
0% {
width: 0;
}
}
</style>
</head>
<body>
<main>
<div class="loading">
<div class="ball"></div>
<p class="text">LOADING ...</d>
</div>
</main>
</body>
</html>