-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
128 lines (112 loc) · 2.3 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
* {
padding: 0;
margin: 0;
}
body {
font-family: "Montserrat", monospace;
font-size: 24px;
height: 100vh;
background: url('img/bg.svg') no-repeat center center fixed;
background-size: cover;
}
body::before {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.3);
z-index: -1;
}
.greetings {
height: 100vh;
width: 100vw;
color: aliceblue;
text-align: center;
letter-spacing: -1px;
word-spacing: -2px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}
.all-text {
padding-top: 18%;
}
.container {
margin: 0;
padding: 0;
min-height: 35vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
/* Estilo del texto y flecha */
#click-text {
color: white;
font-size: 24px;
margin: 20px 0;
animation: blink 1.5s infinite;
}
.arrow {
color: white;
font-size: 40px;
animation: bounce 1s infinite;
margin-bottom: 20px;
}
/* Estilo del corazón */
.heart {
height: 70px;
width: 70px;
background: #f20044;
position: relative;
transform: rotate(-45deg);
animation: heart 0.6s linear infinite;
cursor: pointer;
filter: drop-shadow(0 0 9px rgba(255, 65, 93, 0.9));
transition: transform 1s ease; /* Para la animación de agrandar */
}
@keyframes heart {
0% {
transform: rotate(-45deg) scale(1.05);
}
}
.heart:before {
content: '';
position: absolute;
height: 70px;
width: 70px;
background: #f20044;
top: -50%;
border-radius: 50px;
}
.heart:after {
content: '';
position: absolute;
height: 70px;
width: 70px;
background: #f20044;
right: -50%;
border-radius: 50px;
}
/* Zoom al hacer clic */
.heart.zoom {
transform: scale(10); /* Agranda el corazón */
}
/* Animación de parpadeo para el texto */
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
/* Animación de rebote para la flecha */
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
#particles-js {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: -1; /* Esto hace que las partículas estén detrás del contenido */
}