-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
94 lines (85 loc) · 1.79 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
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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
.frame{
background: #e56262;
width: 400px;
height: 400px;
position: absolute;
top: 50%;
left: 50%;
margin-top: -200px;
margin-left: -200px;
border-radius: 2px;
box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.5);
}
.center{
position: absolute;
width: 220px;
height: 220px;
top: 90px;
left: 90px;
}
.dot{
position: absolute;
background-color: #fff;
border-radius: 50%;
animation-fill-mode: both;
animation-timing-function: ease-in-out; /* Smooth Start and end */
}
.dot-1{
z-index: 3;
width: 30px;
height: 30px;
top: 95px;
left: 95px;
animation: jump-1 2s infinite alternate;
}
.dot-2{
z-index: 2;
width: 60px;
height: 60px;
top: 80px;
left: 80px;
animation: jump-2 2s infinite alternate;
}
.dot-3{
z-index: 1;
width: 90px;
height: 90px;
top: 65px;
left: 65px;
animation: jump-3 2s infinite alternate;
}
@keyframes jump-1{
0%, 70%{
box-shadow: 2px 2px 3px 2px rgba(0, 0, 0, 0.2);
transform: scale(0); /* Start Small */
}
100%{
box-shadow: 10px 10px 15px 0 rgba(0, 0, 0, 0.3);
transform: scale(1); /* Grow the full size */
}
}
@keyframes jump-2{
0%, 40%{
box-shadow: 2px 2px 3px 2px rgba(0, 0, 0, 0.2);
transform: scale(0); /* Start Small */
}
100%{
box-shadow: 10px 10px 15px 0 rgba(0, 0, 0, 0.3);
transform: scale(1); /* Grow the full size */
}
}
@keyframes jump-3{
0%, 10%{
box-shadow: 2px 2px 3px 2px rgba(0, 0, 0, 0.2);
transform: scale(0); /* Start Small */
}
100%{
box-shadow: 10px 10px 15px 0 rgba(0, 0, 0, 0.3);
transform: scale(1); /* Grow the full size */
}
}