-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex2.html
98 lines (88 loc) · 2.3 KB
/
index2.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
<!DOCTYPE html>
<head>
<style type="text/css">
html, body {
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
overflow: hidden;
display: flex;
}
div[class*=wrapper] {
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
div[class*=loader] {
position: relative;
width: 200px;
height: 200px;
}
/*
=======================
Square Preloader
=======================
*/
.first-wrapper {
background-color: rgba(36,38,45,1.0);
}
.square {
width: 50px;
height: 50px;
background-color: rgba(255,255,255,0);
margin-right: auto;
margin-left: auto;
border: 2px solid rgba(102,204,255,1.0);
left: 73px;
top: 73px;
position: absolute;
}
.square-loader {
transform: rotate(45deg);
}
.first_square {
animation: first_square_animate 2s infinite ease-in-out;
}
.second_square {
animation: second_square 5s forwards,
second_square_animate 5s infinite ease-in-out;
}
.third_square {
animation: third_square 3s forwards,
third_square_animate 3s infinite ease-in-out;
}
@keyframes second_square {
100% { width: 100px; height:100px; left: 48px; top: 48px; }
}
@keyframes third_square {
100% { width: 150px; height:150px; left: 23px; top: 23px;}
}
@keyframes first_square_animate {
0% { transform: perspective(100px) rotateX(0deg) rotateY(0deg);}
50% { transform: perspective(100px) rotateX(-180deg) rotateY(0deg); }
100% { transform: perspective(100px) rotateX(-180deg) rotateY(-180deg); }
}
@keyframes second_square_animate {
0% { transform: perspective(200px) rotateX(0deg) rotateY(0deg); }
50% { transform: perspective(200px) rotateX(180deg) rotateY(0deg); }
100% { transform: perspective(200px) rotateX(180deg) rotateY(180deg); }
}
@keyframes third_square_animate {
0% { transform: perspective(300px) rotateX(0deg) rotateY(0deg); }
50% { transform: perspective(300px) rotateX(-180deg) rotateY(0deg); }
100% { transform: perspective(300px) rotateX(-180deg) rotateY(-180deg); }
}
</style>
</head>
<html lang="en">
<div class="first-wrapper">
<div class="square-loader">
<div class="square first_square"></div>
<div class="square second_square"></div>
<div class="square third_square"></div>
</div>
</div>
</html>