Files
outdoor-tour-pwa/src/components/riddles-css/Riddle_6.module.css
T
2026-10-11 00:09:29 +02:00

83 lines
1.3 KiB
CSS

.heart-container {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
flex: 1;
margin: 20px 0;
}
.heart {
width: 200px;
height: 200px;
background-color: red;
transform-origin: center center;
will-change: transform;
z-index: 5;
}
.error-popup {
z-index: 6;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100dvh;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.error-message-text {
width: 100%;
text-align: center;
}
.error-content {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
@keyframes heartBeatFast {
0%, 100% {
transform: scale(1);
}
15% {
transform: scale(1.15);
}
30% {
transform: scale(1);
}
45% {
transform: scale(1.18);
}
60% {
transform: scale(1);
}
}
@keyframes heartBeatSlow {
0%, 100% {
transform: scale(1);
}
25% {
transform: scale(1.08);
}
50% {
transform: scale(1);
}
}
.heart-fast {
animation: heartBeatFast 0.8s infinite ease-in-out;
}
.heart-slow {
animation: heartBeatSlow 2s infinite ease-in-out;
}