-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
79 lines (66 loc) · 1.21 KB
/
style.css
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
body {
font-family: Arial, sans-serif;
text-align: center;
background-color: #f0f0f0;
overflow: hidden;
/* Hide scrollbar */
}
#heart {
font-size: 200px;
color: pink;
margin-top: 50px;
animation: pulse 1s infinite alternate;
/* Pulsating animation */
}
@keyframes pulse {
from {
transform: scale(1);
}
to {
transform: scale(1.2);
}
}
button {
padding: 10px 20px;
font-size: 18px;
cursor: pointer;
position: absolute;
/* Position absolutely */
}
#yesBtn {
top: 70%;
left: 30%;
}
#noBtn {
top: 70%;
left: 60%;
}
@import url("https://fonts.googleapis.com/css2?family=Pacifico:wght@200;400;600&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css");
* {
box-sizing: border-box;
}
body {
background-color: pink;
display: flex;
align-items: center;
justify-content: center;
font-family: 'Pacifico', cursive;
margin: 0;
min-height: 100vh;
}
.heart {
position: fixed;
font-size: 1.5rem;
top: -1vh;
transform: translateY(0);
animation: fall 3s linear forwards;
}
@keyframes fall {
from {
transform: translateY(0vh) translateX(-10vw);
}
to {
transform: translateY(105vh) translateX(10vw);
}
}