forked from HackYourFuture-CPH/JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.css
More file actions
112 lines (101 loc) · 1.84 KB
/
main.css
File metadata and controls
112 lines (101 loc) · 1.84 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
100
101
102
103
104
105
106
107
108
109
110
111
112
body {
font-family: "Open Sans", sans-serif;
background-color: #F9FBFD;
}
* {
box-sizing: border-box;
}
body, h1, h2 {
margin: 0;
overflow: hidden;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
ul.marks li {
width: 100px;
height: 100px;
position: absolute;
transition: transform 2s;
border-radius: 100%;
}
ul.marks li:nth-child(1) {
background-color: red;
}
ul.marks li:nth-child(2) {
background-color: blue;
}
ul.marks li:nth-child(3) {
background-color: green;
}
ul.targets li {
border-radius: 100%;
width: 100px;
height: 100px;
border: solid 1px;
position: absolute;
transition: box-shadow 0.3s;
text-align: center;
line-height: 100px;
}
ul.targets li.fulfilled {
box-shadow: green 0px 0px 25px;
}
ul.targets li:nth-child(1) {
top: 300px;
left: 20px;
}
ul.targets li:nth-child(2) {
top: 300px;
left: 400px;
}
ul.targets li:nth-child(3) {
top: 20px;
left: 400px;
}
span {
display: none;
}
@keyframes bounceIn {
from,
20%,
40%,
60%,
80%,
to {
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}
0% {
opacity: 0;
transform: translate(-50%, -50%) scale3d(0.3, 0.3, 0.3);
}
20% {
transform: translate(-50%, -50%) scale3d(1.1, 1.1, 1.1);
}
40% {
transform: translate(-50%, -50%) scale3d(0.9, 0.9, 0.9);
}
60% {
opacity: 1;
transform: translate(-50%, -50%) scale3d(1.03, 1.03, 1.03);
}
80% {
transform: translate(-50%, -50%) scale3d(0.97, 0.97, 0.97);
}
to {
opacity: 1;
transform: translate(-50%, -50%) scale3d(1, 1, 1);
}
}
span.shown {
display: block;
animation-duration: 0.75s;
animation-name: bounceIn;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 5rem;
}