-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
146 lines (118 loc) · 5.98 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
143
144
145
146
<html>
<head>
<title>Landing Page</title>
<link href="https://fonts.googleapis.com/css?family=Ceviche+One|Roboto+Condensed:300,400,700" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="wrapper">
<div id="particles-js"></div>
<div class="texts">
<h2>UEM</h2>
<h1>TechFest</h1>
<span class="line"></span>
<h3>January '18</h3>
<br>
<span id="time"></span><span class="to-go"> to go</span></div>
<div class="meteor"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 65 1098.12">
<title>Asset 4</title>
<g id="Layer_2" data-name="Layer 2">
<g id="Layer_1-2" data-name="Layer 1">
<rect y="838.91" width="65" height="259.2" style="fill: #70d6cc;opacity: 0"/>
<rect id="glow_trail" x="5.58" width="51.84" height="1061.83" style="fill: #6edbd3"/>
<circle id="glow_circle" cx="31.5" cy="1061.91" r="25.92" style="fill: #6edbd3"/>
<g id="flare_trail">
<path d="M49.45,970.11v14.36a2,2,0,0,1-2,2h0a2,2,0,0,1-2-2V906.71a2,2,0,0,0-2-2h0a2,2,0,0,0-2,2v51.84a2,2,0,0,1-2,2h0a2,2,0,0,1-2-2V931.83a2,2,0,0,0-2-2h0a2,2,0,0,0-2,2v60.61a2,2,0,0,1-2,2h0a2,2,0,0,1-2-2V947.38a2,2,0,0,0-2-2h0a2,2,0,0,0-2,2v22.73a2,2,0,0,1-2,2h0a2,2,0,0,1-2-2V930.63a2,2,0,0,0-2-2h0a2,2,0,0,0-2,2v52.24a2,2,0,0,1-2,2h0a2,2,0,0,1-2-2V958.55a2,2,0,0,0-2-2h0a2,2,0,0,0-2,2v102.88a2,2,0,0,0,2,2H51.44a2,2,0,0,0,2-2V970.11a2,2,0,0,0-2-2h0A2,2,0,0,0,49.45,970.11Z" style="fill: #261b49"/>
</g>
<g id="comet_flare">
<circle cx="31.5" cy="1061.91" r="21.93" style="fill: #261b49"/>
</g>
<path id="front_trail" d="M45.46,1027.4v10a2,2,0,0,1-2,2h0a2,2,0,0,1-2-2V997a2,2,0,0,0-2-2h0a2,2,0,0,0-2,2v42.32a2,2,0,0,1-2,2h0a2,2,0,0,1-2-2V1006.4a2,2,0,0,0-2-2h0a2,2,0,0,0-2,2v26.35a2,2,0,0,1-2,2h0a2,2,0,0,1-2-2V984.47a2,2,0,0,0-2-2h0a2,2,0,0,0-2,2v56.68a2,2,0,0,1-2,2h0a2,2,0,0,1-2-2v-21.21a2,2,0,0,0-2-2h0a2,2,0,0,0-2,2v40a2,2,0,0,0,2,2h31.9a2,2,0,0,0,2-2V1027.4a2,2,0,0,0-2-2h0A2,2,0,0,0,45.46,1027.4Z" style="fill: #db3785"/>
<g id="trail_2_high">
<rect x="9.57" y="900.33" width="3.99" height="24.33" rx="1.99" ry="1.99" style="fill: #261b49"/>
</g>
<g id="trail_2_mid">
<rect x="41.47" y="873.61" width="3.99" height="11.17" rx="1.99" ry="1.99" style="fill: #261b49"/>
</g>
<g id="trail_2_x">
<rect x="25.47" y="918.61" width="3.99" height="11.17" rx="1.99" ry="1.99" style="fill: #261b49"/>
</g>
<g id="trail_2_low">
<rect x="49.45" y="924.65" width="3.99" height="21.53" rx="1.99" ry="1.99" style="fill: #261b49"/>
</g>
<g id="trail_low">
<rect x="13.56" y="998.02" width="3.99" height="9.97" rx="1.99" ry="1.99" style="fill: #db3785"/>
</g>
<g id="trail_mid">
<rect x="37.48" y="971.31" width="3.99" height="9.97" rx="1.99" ry="1.99" style="fill: #db3785"/>
</g>
<g id="trail_high" data-name="trail_high">
<rect x="45.46" y="996.83" width="3.99" height="21.13" rx="1.99" ry="1.99" style="fill: #db3785"/>
</g>
<g id="comet">
<circle id="comet-2" data-name="comet" cx="31.5" cy="1061.91" r="17.94" style="fill: #eae9df"/>
<circle cx="37" cy="1069" r="2" style="fill: #ffeef7"/>
<circle cx="44" cy="1060" r="2" style="fill: #cad3e5"/>
<circle cx="26.5" cy="1072.5" r="1.5" style="fill: #fff"/>
</g>
</g>
</g>
</svg>
</div>
</div>
<script src="jquery.min.js" type="text/javascript"></script>
<script src="particles.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/svg.js/2.6.3/svg.min.js"></script>
<script type="text/javascript">
particlesJS.load('particles-js',
'https://raw.githubusercontent.com/GaziTaufiqIslam/Assests-for-codepen/master/particlesjs-config.json',
function() {
console.log('callback - particles.js config loaded');
});
// Set the date we're counting down to
var countDownDate = new Date("Jan 1, 2018 00:00:00").getTime();
// Update the count down every 1 second
var x = setInterval(function() {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
document.getElementById("time").innerHTML = days + "Days " + hours + ":"
+ minutes + ":" + seconds + " ";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("time").innerHTML = "EXPIRED";
}
}, 1000);
var flareTrailH = SVG.get('trail_2_high');
var flareTrailM = SVG.get('trail_2_mid');
var flareTrailL = SVG.get('trail_2_low');
var flareTrailX = SVG.get('trail_2_x');
var frontTrailH = SVG.get('trail_high');
var frontTrailM = SVG.get('trail_mid');
var frontTrailL = SVG.get('trail_low');
var Layer2 = SVG.get('Layer_1-2');
var comet = SVG.get('comet');
comet.animate().rotate(360).loop(true)
function recLoop(){
Layer2.animate(100).move(3,4).animate(100).move(-2,2).animate(100).move(0,-3);
recLoop();
}
frontTrailL.animate({duration: '0ms'}).move(0,50).animate({delay: '500ms', ease: '<'}).move(0,-500).loop(true);
frontTrailH.animate({duration: '0ms', ease: '<'}).move(0,50).animate({delay: '100ms', ease: '<'}).move(0,-500).loop(true);
frontTrailM.animate({duration: '0ms', ease: '<'}).move(0,50).animate({delay: '1100ms, ease: '<''}).move(0,-500).loop(true);
flareTrailH.animate({duration: '0ms'}).move(0,50).animate({delay: '300ms', ease: '<'}).move(0,-500).loop(true);
flareTrailL.animate({duration: '0ms', ease: '<'}).move(0,50).animate({delay: '0ms', ease: '<'}).move(0,-500).loop(true);
flareTrailM.animate({duration: '0ms', ease: '<'}).move(0,50).animate({delay: '900ms, ease: '<''}).move(0,-500).loop(true);
flareTrailX.animate({duration: '0ms', ease: '<'}).move(0,50).animate({delay: '600ms, ease: '<''}).move(0,-500).loop(true);
recLoop();
</script>
</body>
</html>