-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (92 loc) · 2.22 KB
/
index.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Market Chart Candles (Pure CSS Animation)</title>
<style>
html, body {
background-color: #404456;
}
#loader {
position: absolute;
top: 50%;
left: 50%;
margin-top: -2.7em;
margin-left: -2.7em;
width: 5.4em;
height: 5.4em;
background-color: #404456;
}
#hill {
position: absolute;
width: 7.1em;
height: 7.1em;
top: 1.7em;
left: 1.7em;
background-color: transparent;
border-left: .25em solid whitesmoke;
transform: rotate(45deg);
}
#hill:after {
content: '';
position: absolute;
width: 7.1em;
height: 7.1em;
left: 0;
background-color: #404456;
}
#box {
position: absolute;
left: 0;
bottom: -.1em;
width: 1em;
height: 1em;
background-color: transparent;
border: .25em solid whitesmoke;
border-radius: 15%;
transform: translate(0, -1em) rotate(-45deg);
animation: push 2.5s cubic-bezier(.79, 0, .47, .97) infinite;
}
@keyframes push {
0% {
transform: translate(0, -1em) rotate(-45deg);
}
5% {
transform: translate(0, -1em) rotate(-50deg);
}
20% {
transform: translate(1em, -2em) rotate(47deg);
}
25% {
transform: translate(1em, -2em) rotate(45deg);
}
30% {
transform: translate(1em, -2em) rotate(40deg);
}
45% {
transform: translate(2em, -3em) rotate(137deg);
}
50% {
transform: translate(2em, -3em) rotate(135deg);
}
55% {
transform: translate(2em, -3em) rotate(130deg);
}
70% {
transform: translate(3em, -4em) rotate(217deg);
}
75% {
transform: translate(3em, -4em) rotate(220deg);
}
100% {
transform: translate(0, -1em) rotate(-225deg);
}
}
</style>
</head>
<body>
<div id="loader">
<div id="box"></div>
<div id="hill"></div>
</div></body>
</html>