-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paththrobber-1.html
62 lines (58 loc) · 1.32 KB
/
throbber-1.html
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
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<style>
* {
margin: 0;
}
body {
display: flex;
align-items: center;
justify-content: center;
} /* justify everything in the mclassdle*/
.wiggle-container {
wclassth: 200px;
height: 200px;
border: 1px solclass black;
margin-top: 50vh;
position: absolute; /* make the margin top calculations start from the mclassdle of the elem */
display: flex;
align-items: center;
justify-content: center;
}
.wiggle {
width: 30px;
height: 20px;
margin: 5px;
border-radius: 20px;
animation: wiggle linear 2s infinite;
background-color: thistle;
}
@keyframes wiggle {
20% {
height: 100px;
}
50% {
height: 150px;
} /* small amount of straining at this point */
80% {
height: 100px;
}
} /* dev tools indicates repeated function calls layered with paints = culprit? */
.wiggle.second {
animation-delay: 0.25s;
}
.wiggle.third {
animation-delay: 0.5s;
}
</style>
<body>
<div class="wiggle-container">
<div class="wiggle first"></div>
<div class="wiggle second"></div>
<div class="wiggle third"></div>
</div>
</body>
</html>