-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
142 lines (139 loc) · 3.59 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="styles.css" />
<script src="animation.js"></script>
<script>
window.addEventListener("DOMContentLoaded", () => {
const options = {
mainContainerId: "logoAnimationContainer",
ownLogo: {
src: "img/pancake.png",
lightColor: "#0000FF",
size: 75,
},
partnerLogosSize: 50,
partnerLogosTotalSpeed: 30,
partnerLogos: [
{
src: "img/binance.png",
lightColor: "#0000FF",
speed: 36,
delay: 20,
},
{
src: "img/kucoin.png",
lightColor: "#0000FF",
speed: 30,
delay: 20,
},
{
src: "img/hit.png",
lightColor: "#0000FF",
speed: 33,
delay: 20,
},
{
src: "img/huobi.png",
lightColor: "#0000FF",
speed: 35,
delay: 20,
},
{
src: "img/kraken.png",
lightColor: "#0000FF",
speed: 31,
delay: 20,
},
{
src: "img/pancake.png",
lightColor: "#0000FF",
speed: 40,
delay: 20,
},
{
src: "img/binance.png",
lightColor: "#0000FF",
speed: 38,
delay: 20,
},
{
src: "img/kucoin.png",
lightColor: "#0000FF",
speed: 40,
delay: 20,
},
{
src: "img/hit.png",
lightColor: "#0000FF",
speed: 31,
delay: 20,
},
{
src: "img/huobi.png",
lightColor: "#0000FF",
speed: 34,
delay: 20,
},
{
src: "img/kraken.png",
lightColor: "#0000FF",
speed: 37,
delay: 20,
},
{
src: "img/huobi.png",
lightColor: "#0000FF",
speed: 40,
delay: 20,
},
{
src: "img/kraken.png",
lightColor: "#0000FF",
speed: 40,
delay: 20,
},
{
src: "img/pancake.png",
lightColor: "#0000FF",
speed: 35,
delay: 20,
},
],
circles: {
outer: {
color: "FF00A1", // must be HEX! Validate string length 6, characters 0-9A-F
size: 35,
},
inner: {
color: "F76D16",
size: 35,
},
},
animations: {
mainRotation: {
speed: 500,
},
partnerLights: {
asynchronous: false,
speed: 50, //10 = 1s, //do some math and time it with the own logo animation
},
ownLight: {
delay: 35,
speed: 40,
size: 40,
},
},
};
OrbitingLogosAnimation(options);
});
</script>
<title>Document</title>
</head>
<body>
<div id="logoAnimationContainer"></div>
</body>
</html>