forked from Dezenix/frontend-html-css-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
80 lines (61 loc) · 1.12 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
.main {
display: flex;
justify-content: center;
align-items: center;
width: 100vw;
height: 100vh;
background-color: rgba(202, 240, 248, 1);
}
.box {
width: 250px;
height: 250px;
background: rgba(3, 4, 94, 1);
display: flex;
justify-content: center;
align-items: center;
box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.3);
}
.container {
height: 15px;
width: 105px;
display: flex;
position: relative;
/* flex-wrap: wrap; */
}
.circle {
width: 15px;
height: 15px;
border-radius: 50%;
background-color: white;
animation: circulate 500ms linear 0ms infinite;
margin-right: 30px;
}
.circle:first-child {
position: absolute;
top: 0;
left: 0;
animation: pop-out 500ms linear 0ms infinite;
}
.circle:last-child {
position: absolute;
top: 0;
right: 0;
margin-right: 0;
animation: pop-out 500ms linear 0s infinite reverse;
}
@keyframes pop-out {
from {
transform: scale(0, 0);
opacity: 0;
} to {
transform: scale(1, 1);
opacity: 1;
}
}
@keyframes circulate {
from {
transform: translateX(0px);
} to {
transform: translateX(45px);
}
}