-
Notifications
You must be signed in to change notification settings - Fork 2
/
lastpage.html
71 lines (67 loc) · 1.98 KB
/
lastpage.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Background Reveal</title>
<script src="https://cdn.tailwindcss.com"></script>
<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=Ubuntu&display=swap" rel="stylesheet">
<style>
body,
html {
height: 100%;
margin: 0;
overflow: hidden;
font-family: "Ubuntu", sans-serif;
font-weight: 400;
font-style: normal;
}
.background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url("mygif.gif") center / cover no-repeat;
opacity: 0;
transition: opacity 1s ease-in-out;
z-index: -1;
}
.content {
position: relative;
z-index: 1;
padding: 20px;
}
.reveal {
opacity: 1;
}
@media (min-width: 560px) {
.background {
background-size: contain;
background-repeat: no-repeat;
}
}
</style>
</head>
<body>
<div class="background"></div>
<div class="content">
<!-- Your content goes here -->
<h1>kiss on the red dot in 3 sec</h1>
<p class="mb-2">nahi kregi tho kalla kutta katega</p>
<a href="srslylastpage.html" class="bg-blue-400 rounded-xl p-2" id="niceKiss" style="display: none;">nice kiss</a>
</div>
<script>
window.onload = function () {
setTimeout(function () {
document.querySelector(".background").classList.add("reveal");
setTimeout(function () {
document.getElementById("niceKiss").style.display = "inline";
}, 10000); // 10 seconds for the anchor tag to appear
}, 2000); // 2 seconds for testing purposes
};
</script>
</body>
</html>