Newer
Older
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Caveat:wght@438&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<link rel="icon" type="image/x-icon" href="https://static.igem.wiki/teams/5187/art/icon.png">
<title>Tsinghua - IGEM 2024</title>
<style>
h1 {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Caveat", cursive;
font-optical-sizing: auto;
font-weight: 438;
font-style: normal;
}
header{
position: relative;
left: 0;
top: 0;
width: 100%;
height: 80px;
}
header h4 {
position: absolute;
left: 10%;
bottom: 1rem;
font-size: 1.6rem;
}
/* Splash screen */
.intro{
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100vh;
transition: 1s;
background-image: url("https://static.igem.wiki/teams/5187/home-bg-3.jpg");
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
}
.logo-header{
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%, -50%);
color: #161616;
}
.logo{
position: relative;
display: inline-block;
bottom: -20px;
opacity: 0;
}
.logo.active{
bottom: 0;
opacity: 1;
transition: ease-in-out 0.5s;
}
.logo.fade{
bottom: 150px;
opacity: 0;
transition: ease-in-out 0.5s;
}
</style>
</head>
<body>
<div class="intro">
<h1 class="logo-header">
<span class="logo"> Inhale, </span> <span class="logo">heal,</span><span class="logo">repeat.</span>
</h1>
</div>
<script>
let intro = document.querySelector('.intro');
let logo = document.querySelector('.logo-header');
let logoSpan = document.querySelectorAll('.logo');
window.addEventListener('DOMContentLoaded', ()=>{
setTimeout(()=>{
logoSpan.forEach((span, idx)=>{
setTimeout(()=>{
span.classList.add('active');
}, (idx + 1) * 400)
});
setTimeout(()=>{
logoSpan.forEach((span, idx)=>{
setTimeout(()=>{
span.classList.remove('active');
span.classList.add('fade');
}, (idx + 1) * 50)
})
}, 2000);
setTimeout(()=>{
intro.style.top = '-100vh';
setTimeout(()=>{