-
Notifications
You must be signed in to change notification settings - Fork 3
/
srslylastpage.html
78 lines (72 loc) · 1.91 KB
/
srslylastpage.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ily</title>
<style>
@import "https://fonts.googleapis.com/css?family=Lily+Script+One";
body {
margin: 0 auto;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(#9ad1d4, #d6eced);
}
.container {
box-sizing: border-box;
width: 500px;
height: 250px;
border-radius: 20px;
background-color: #f5f5dc;
padding: 15px;
text-align: left;
perspective: 400px; /* gives the 3d effect */
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}
p {
position: absolute;
font-family: "Lily Script One";
font-size: 2em;
color: #a0522d;
text-shadow: 2px 2px 1px #f5deb3;
}
.panel {
position: absolute;
width: 150px;
height: 50px;
background: #a0522d;
transition: transform 1s;
transform-origin: 0% 50%;
cursor: help;
border-radius: 5px;
}
.spoiler-text {
position: absolute;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
.panel:active,
.panel:focus {
transform: rotateY(-90deg);
}
</style>
</head>
<body>
<div class="container">
<p>BYE!<br>
The greatest person in the world is:
<br>
<span class="spoiler-text">
you  :)
<!-- no answer visible here! ;) -->
</span>
<span class="panel" tabindex="0"></span>
<!-- tabindex allows tab key to select panel to reveal also -->
</p>
</div>
</body>
</html>