362 lines
7.1 KiB
CSS
362 lines
7.1 KiB
CSS
/* ========================================
|
|
DAS WEBSITE ANIMATIONS
|
|
Cozy, dreamy, gentle vibes ✨
|
|
======================================== */
|
|
|
|
/* ========================================
|
|
1. CHARACTER FLOAT
|
|
Gentle up-and-down floating motion
|
|
======================================== */
|
|
|
|
@keyframes character-float {
|
|
0%, 100% {
|
|
transform: translateY(0px);
|
|
}
|
|
50% {
|
|
transform: translateY(-15px);
|
|
}
|
|
}
|
|
|
|
.character-float {
|
|
animation: character-float 4s ease-in-out infinite;
|
|
}
|
|
|
|
/* Variant: slower, more subtle */
|
|
.character-float-slow {
|
|
animation: character-float 6s ease-in-out infinite;
|
|
}
|
|
|
|
/* ========================================
|
|
2. CLOUD DRIFT
|
|
Slow horizontal drifting with parallax
|
|
======================================== */
|
|
|
|
@keyframes cloud-drift {
|
|
0% {
|
|
transform: translateX(0);
|
|
}
|
|
100% {
|
|
transform: translateX(100vw);
|
|
}
|
|
}
|
|
|
|
/* Different speed variants for parallax effect */
|
|
.cloud-drift-slow {
|
|
animation: cloud-drift 60s linear infinite;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.cloud-drift-medium {
|
|
animation: cloud-drift 45s linear infinite;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.cloud-drift-fast {
|
|
animation: cloud-drift 30s linear infinite;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* Start clouds off-screen left */
|
|
.cloud-drift-slow,
|
|
.cloud-drift-medium,
|
|
.cloud-drift-fast {
|
|
transform: translateX(-20%);
|
|
}
|
|
|
|
/* ========================================
|
|
3. HEART FLOAT
|
|
Hearts gently rising, fading, wobbling
|
|
======================================== */
|
|
|
|
@keyframes heart-float {
|
|
0% {
|
|
transform: translateY(0) rotate(0deg);
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
transform: translateY(-30px) rotate(5deg);
|
|
opacity: 0.8;
|
|
}
|
|
100% {
|
|
transform: translateY(-60px) rotate(-3deg);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.heart-float {
|
|
animation: heart-float 3s ease-out infinite;
|
|
}
|
|
|
|
/* Staggered timing for multiple hearts */
|
|
.heart-float-delay-1 {
|
|
animation: heart-float 3s ease-out infinite;
|
|
animation-delay: 0.5s;
|
|
}
|
|
|
|
.heart-float-delay-2 {
|
|
animation: heart-float 3s ease-out infinite;
|
|
animation-delay: 1s;
|
|
}
|
|
|
|
.heart-float-delay-3 {
|
|
animation: heart-float 3s ease-out infinite;
|
|
animation-delay: 1.5s;
|
|
}
|
|
|
|
/* ========================================
|
|
4. SPARKLE TWINKLE
|
|
Stars pulsing/twinkling at intervals
|
|
======================================== */
|
|
|
|
@keyframes sparkle-twinkle {
|
|
0%, 100% {
|
|
opacity: 0.3;
|
|
transform: scale(1);
|
|
}
|
|
50% {
|
|
opacity: 1;
|
|
transform: scale(1.2);
|
|
}
|
|
}
|
|
|
|
@keyframes sparkle-rotate {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.sparkle-twinkle {
|
|
animation: sparkle-twinkle 2s ease-in-out infinite;
|
|
}
|
|
|
|
/* Different timing intervals for variety */
|
|
.sparkle-slow {
|
|
animation: sparkle-twinkle 3s ease-in-out infinite;
|
|
}
|
|
|
|
.sparkle-fast {
|
|
animation: sparkle-twinkle 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
/* Combined twinkle + rotate for extra magic */
|
|
.sparkle-magic {
|
|
animation:
|
|
sparkle-twinkle 2s ease-in-out infinite,
|
|
sparkle-rotate 4s linear infinite;
|
|
}
|
|
|
|
/* Staggered delays */
|
|
.sparkle-delay-1 {
|
|
animation-delay: 0.3s;
|
|
}
|
|
|
|
.sparkle-delay-2 {
|
|
animation-delay: 0.6s;
|
|
}
|
|
|
|
.sparkle-delay-3 {
|
|
animation-delay: 0.9s;
|
|
}
|
|
|
|
/* ========================================
|
|
5. BUTTON HOVER
|
|
Bouncy, satisfying hover effects
|
|
======================================== */
|
|
|
|
/* Main button bounce */
|
|
.btn-hover {
|
|
transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
|
position: relative;
|
|
}
|
|
|
|
.btn-hover:hover {
|
|
transform: translateY(-3px) scale(1.05);
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.btn-hover:active {
|
|
transform: translateY(-1px) scale(1.02);
|
|
transition: all 0.1s ease;
|
|
}
|
|
|
|
/* Streaming platform buttons */
|
|
.streaming-btn {
|
|
transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
}
|
|
|
|
.streaming-btn:hover {
|
|
transform: translateY(-4px) scale(1.08);
|
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
|
|
filter: brightness(1.1);
|
|
}
|
|
|
|
/* Pulse effect for primary buttons */
|
|
@keyframes button-pulse {
|
|
0%, 100% {
|
|
box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.4);
|
|
}
|
|
50% {
|
|
box-shadow: 0 0 0 10px rgba(255, 105, 180, 0);
|
|
}
|
|
}
|
|
|
|
.btn-pulse:hover {
|
|
animation: button-pulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
/* ========================================
|
|
6. PANEL ENTRANCE
|
|
Subtle slide-up fade-in on page load
|
|
======================================== */
|
|
|
|
@keyframes panel-entrance {
|
|
0% {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.panel-entrance {
|
|
animation: panel-entrance 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
|
|
}
|
|
|
|
/* Staggered entrance for multiple panels */
|
|
.panel-entrance-delay-1 {
|
|
opacity: 0;
|
|
animation: panel-entrance 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
|
|
}
|
|
|
|
.panel-entrance-delay-2 {
|
|
opacity: 0;
|
|
animation: panel-entrance 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
|
|
}
|
|
|
|
.panel-entrance-delay-3 {
|
|
opacity: 0;
|
|
animation: panel-entrance 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
|
|
}
|
|
|
|
.panel-entrance-delay-4 {
|
|
opacity: 0;
|
|
animation: panel-entrance 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
|
|
}
|
|
|
|
/* ========================================
|
|
7. TRACK HOVER
|
|
Slight glow/lift on track list items
|
|
======================================== */
|
|
|
|
.track-hover {
|
|
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
position: relative;
|
|
}
|
|
|
|
.track-hover:hover {
|
|
transform: translateX(8px) translateY(-2px);
|
|
background: rgba(255, 255, 255, 0.05);
|
|
box-shadow:
|
|
0 4px 15px rgba(0, 0, 0, 0.1),
|
|
0 0 20px rgba(255, 105, 180, 0.2);
|
|
}
|
|
|
|
/* Subtle glow pulse on hover */
|
|
@keyframes track-glow {
|
|
0%, 100% {
|
|
box-shadow:
|
|
0 4px 15px rgba(0, 0, 0, 0.1),
|
|
0 0 20px rgba(255, 105, 180, 0.2);
|
|
}
|
|
50% {
|
|
box-shadow:
|
|
0 4px 15px rgba(0, 0, 0, 0.1),
|
|
0 0 30px rgba(255, 105, 180, 0.4);
|
|
}
|
|
}
|
|
|
|
.track-hover:hover {
|
|
animation: track-glow 2s ease-in-out infinite;
|
|
}
|
|
|
|
/* Play button reveal on track hover */
|
|
.track-hover .play-btn {
|
|
opacity: 0;
|
|
transform: scale(0.8);
|
|
transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
|
}
|
|
|
|
.track-hover:hover .play-btn {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
/* ========================================
|
|
UTILITY ANIMATIONS
|
|
Additional helper animations
|
|
======================================== */
|
|
|
|
/* Fade in */
|
|
@keyframes fade-in {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.fade-in {
|
|
animation: fade-in 0.5s ease-in forwards;
|
|
}
|
|
|
|
/* Gentle bounce */
|
|
@keyframes gentle-bounce {
|
|
0%, 100% {
|
|
transform: translateY(0);
|
|
}
|
|
50% {
|
|
transform: translateY(-10px);
|
|
}
|
|
}
|
|
|
|
.gentle-bounce {
|
|
animation: gentle-bounce 2s ease-in-out infinite;
|
|
}
|
|
|
|
/* Smooth scale-in */
|
|
@keyframes scale-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.9);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.scale-in {
|
|
animation: scale-in 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
|
|
}
|
|
|
|
/* ========================================
|
|
REDUCED MOTION SUPPORT
|
|
Respect user preferences
|
|
======================================== */
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
}
|
|
}
|