-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
98 lines (91 loc) · 2.8 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
<!DOCTYPE HTML>
<html>
<head>
<title>Selamat Datang </title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="images/Iconslogo/rsz_logo_1-150x150.png" />
<style>
html,body{
background:#000;
margin:0;
}
.centered{
width:400px;
height:400px;
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
background:#000;
filter: blur(10px) contrast(20);
}
.circle-1,.circle-2{
width:70px;
height:70px;
position:absolute;
background:#fff;
border-radius:50%;
top:50%;left:50%;
transform:translate(-50%,-50%);
}
/*
The below code will animate the circle balls using css animation
*/
.circle-1{
left:20%;
animation:osc-l 1.5s ease-in infinite;
background-color: rgb(255, 238, 4);
}
.circle-2{
left:80%;
animation:osc-r 1.5s ease-in infinite;
background: rgb(0, 247, 255);
}
@keyframes osc-l{
0%{left:20%;}
50%{left:50%;}
100%{left:20%;}
}
@keyframes osc-r{
0%{left:80%;}
50%{left:50%;}
100%{left:80%;}
}
.text h1{
color: aliceblue;
top: 55%;
position: absolute;
left: 45%;
font-weight: bold;
}
.text h1:after{
content: ".";
position: absolute;
animation: caret infinite;
animation-duration: 1.5s;
animation-timing-function: steps(20, end);
}
@keyframes caret {
0%, 100% {
opacity: 0;
}
50% {
opacity: 1;
}
}
</style>
</head>
<body>
<div class = "centered">
<div class = "circle-1"></div>
<div class = "circle-2"></div>
</div>
<div class="text"><h1>Hai... </h1></div>
<script>
//The below script changes the page to home after 2.3s using timeout function.
setTimeout(function(){
window.location.href="home.html";
},2300);
</script>
</body>
</html>