-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paththrobber-2.html
73 lines (66 loc) · 1.37 KB
/
throbber-2.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
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
background-color: peru;
}
.container {
height: 300px;
width: 100vh;
margin-top: 50vh;
position: absolute;
/* border: 1px solid black ; */
display: flex;
justify-content: center;
align-items: center;
}
.expand {
width: 80px;
height: 80px;
background-color: papayawhip;
border-radius: 50%;
margin: 20px;
transition: 0.5s;
}
.expand:hover {
border-radius: 5px;
background-color: lightseagreen;
transition: 0.5s;
} /* this hover animation is stupid lol */
@keyframes breathe {
25% {
transform: scale(1, 1);
}
50% {
transform: scale(1.25, 1.25);
}
75% {
transform: scale(1, 1);
}
}
.one {
animation: breathe linear 1.5s infinite;
}
.two {
animation: breathe linear 1.5s infinite;
animation-delay: 0.5s;
}
.three {
animation: breathe linear 1.5s infinite;
animation-delay: 1s;
}
</style>
<body>
<div class="container">
<div class="expand one"></div>
<div class="expand two"></div>
<div class="expand three" ></div>
</div>
</body>
</html>