-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
executable file
·76 lines (66 loc) · 1.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
@import url("https://fonts.googleapis.com/css2?family=Bangers&display=swap");
:root {
--width: 300px;
}
.preload {
display: none;
}
.bg {
display: block;
width: var(--width);
margin: 0 auto;
cursor: pointer;
border-radius: 15px;
background: rgba(219, 124, 0, 1);
transition: background 1.5s;
overflow: hidden;
}
.bg:hover {
background: orange url("img/offer-juice.png");
background-position: 50% 80%;
background-size: cover;
background-size: 100%;
}
.orange-halved {
width: var(--width);
}
.orange-halved:hover {
animation: spin 1s 1 forwards;
}
@keyframes spin {
to {
transform: rotate(720deg);
opacity: 0;
}
}
h1 {
text-align: center;
font-family: "Bangers", cursive;
letter-spacing: 0.1em;
font-weight: bold;
}
abbr {
font-size: 1.1em;
color: orange;
letter-spacing: 0.2em;
}
</style>
</head>
<body>
<h1><abbr title="Aren't you">Orange</abbr> , you thirsty?</h1>
<div class="bg">
<img
src="img/orange-poly.png"
alt="orange halved"
class="orange-halved"
/>
</div>
</body>
</html>