forked from harshrajdhote/Techumen-18
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpreloader.html
More file actions
127 lines (109 loc) · 2.79 KB
/
Copy pathpreloader.html
File metadata and controls
127 lines (109 loc) · 2.79 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<html>
<head>
<style>
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
font-family: monospace;
}
.preload {
width: 100%;
height: 100%;
background: #333;
position: fixed;
top: 0;
left: 0;
z-index: 1;
}
.logo {
width: 300px;
height: 70px;
margin: 150px auto 50px auto;
font-size: 50px;
text-shadow: -1px 2px 2px #000;
text-align: center ;
color: azure;
}
.loader1,
.loader2 {
position: absolute;
border: 5px solid transparent;
border-radius: 50%;
}
.loader1 {
width: 70px;
height: 70px;
border-top: 5px solid azure;
border-bottom: 5px solid azure;
animation: clockwisespin 2s linear 3;
}
.loader2 {
width: 60px;
height: 60px;
border-left: 5px solid darkturquoise;
border-right: 5px solid darkturquoise;
top: 5px;
left: 5px;
animation: anticlockwisespin 2s linear 3;
}
.loader-frame
{
width:70px;
height: 70px;
margin: auto;
position: relative;
}
@keyframes anticlockwisespin{
from {transform: rotate(0deg);}
to{transform: rotate(-360deg);}
}
@keyframes clockwisespin{
from {transform: rotate(0deg);}
to{transform: rotate(360deg);}
}
@keyframes fadeout
{
from {opacity: 1;}
to {opacity: 0;}
}
</style>
<script>
(function(){
var preload = document.getElementById("preload");
var loading = 0;
var id = setInterval(frame,20);
function frame()
{
if(loading == 100)
{
clearInterval(id);
window.open("index.html","_self");
}
else
{
loading = loading +1;
if(loading == 90){
preload.style.animation = "fadeout 1s ease";
}
}
}
})();
</script>
</head>
<body>
<div class="preload" id = "preload">
<div class="logo">
techumen<span style="color:darkturquoise;">'18</span>
</div>
<div class="loader-frame">
<div class="loader1" id="loader1">
</div>
<div class="loader2" id="loader2">
</div>
</div>
</div>
</body>
</html>