-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
107 lines (95 loc) · 1.9 KB
/
styles.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
body {
background-color: #000000;
font-family: 'Arial', sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.container {
text-align: center;
background-color: rgb(0, 0, 0);
border-radius: 10px;
box-shadow: 0 4px 10px rgb(0, 0, 0);
padding: 20px;
animation: fadeIn 1s ease-in-out;
}
h1 {
color: #ff6f61;
animation: glow 1.5s infinite alternate;
}
p {
font-size: 18px;
margin: 20px 0;
color: #ffffff;
animation: fadeInUp 1s ease-in-out;
}
.heart-button {
background-color: transparent;
border: none;
cursor: pointer;
width: 50px;
height: 50px;
position: relative;
outline: none;
animation: pulse 1s infinite alternate; /* Menambahkan animasi menyala */
}
.heart-button:before,
.heart-button:after {
content: '';
position: absolute;
top: 0;
width: 25px;
height: 40px;
background: #ff6f61;
border-radius: 25px 25px 0 0;
}
.heart-button:before {
left: 25px;
transform: rotate(-45deg);
transform-origin: 0 100%;
}
.heart-button:after {
left: 0;
transform: rotate(45deg);
transform-origin: 100% 100%;
}
.hidden {
display: none;
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes glow {
from {
text-shadow: 0 0 10px #ff6f61, 0 0 20px #ff6f61, 0 0 30px #ff6f61;
}
to {
text-shadow: 0 0 20px #ff6f61, 0 0 30px #ff6f61, 0 0 40px #ff6f61;
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes pulse {
0% {
transform: scale(1);
}
100% {
transform: scale(1.1);
}
}