-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
99 lines (90 loc) · 2.39 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
.back {
position: fixed;
padding: 0;
margin: 0;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: white;
animation-name: backdiv;
animation-duration: 3500ms;
animation-iteration-count: infinite;
}
.heart {
position: absolute;
margin: auto;
top: 170px;
right: 0;
bottom: 0;
left: 0;
background-color: pink;
height: 150px;
width: 150px;
transform: rotate(-45deg);
animation-name: beat;
animation-duration: 3500ms;
animation-iteration-count: infinite;
}
.heart:after {
background-color: pink;
content: "";
border-radius: 50%;
position: absolute;
width: 150px;
height: 150px;
top: 0;
left: 80px;
}
.heart:before {
background-color: pink;
content: "";
border-radius: 50%;
position: absolute;
width: 150px;
height: 150px;
top: -80px;
left: 0;
}
@keyframes backdiv {
50% {
background: #ffbe82;
}
}
@keyframes beat {
0% {
transform: scale(1) rotate(-45deg);
}
50% {
transform: scale(0.6) rotate(-45deg);
}
}
.bday {
text-align: center;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
width: 100%;
font-size: 48px;
font-family: 'Nunito', sans-serif;
font-weight: 600;
color: #c402cf;
margin: 20px auto;
padding: 15px;
background-color: #fcd9ea;
}
</style>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@600&display=swap" rel="stylesheet">
<title>Document</title>
</head>
<body>
<div class="back">
<div class="bday">Happy birthday,<br> Angelika!</div>
</div>
<div class="heart"></div>
</body>
</html>