|
| 1 | +/* Page Transition Animations */ |
| 2 | +.page-content { |
| 3 | + min-height: 100vh; |
| 4 | +} |
| 5 | + |
| 6 | +/* Page Loader with Cozify branding */ |
| 7 | +.page-loader { |
| 8 | + position: fixed; |
| 9 | + inset: 0; |
| 10 | + z-index: 9999; |
| 11 | + display: flex; |
| 12 | + flex-direction: column; |
| 13 | + align-items: center; |
| 14 | + justify-content: center; |
| 15 | + gap: 24px; |
| 16 | + background: rgba(22, 21, 29, 0.7); |
| 17 | + backdrop-filter: blur(20px); |
| 18 | + -webkit-backdrop-filter: blur(20px); |
| 19 | + animation: loaderIn 0.3s ease-out; |
| 20 | +} |
| 21 | + |
| 22 | +.page-loader.exit { |
| 23 | + animation: loaderOut 0.4s ease-out forwards; |
| 24 | +} |
| 25 | + |
| 26 | +@keyframes loaderIn { |
| 27 | + 0% { |
| 28 | + opacity: 0; |
| 29 | + } |
| 30 | + 100% { |
| 31 | + opacity: 1; |
| 32 | + } |
| 33 | +} |
| 34 | + |
| 35 | +@keyframes loaderOut { |
| 36 | + 0% { |
| 37 | + opacity: 1; |
| 38 | + } |
| 39 | + 100% { |
| 40 | + opacity: 0; |
| 41 | + } |
| 42 | +} |
| 43 | + |
| 44 | +/* Cozify Logo */ |
| 45 | +.loader-logo { |
| 46 | + display: flex; |
| 47 | + gap: 2px; |
| 48 | +} |
| 49 | + |
| 50 | +.loader-logo span { |
| 51 | + font-size: 2rem; |
| 52 | + font-weight: 800; |
| 53 | + color: #ffbade; |
| 54 | + animation: letterPulse 0.8s ease-in-out infinite alternate; |
| 55 | + text-shadow: 0 0 20px rgba(255, 186, 222, 0.6); |
| 56 | +} |
| 57 | + |
| 58 | +@keyframes letterPulse { |
| 59 | + 0% { |
| 60 | + transform: translateY(0); |
| 61 | + text-shadow: 0 0 10px rgba(255, 186, 222, 0.4); |
| 62 | + } |
| 63 | + 100% { |
| 64 | + transform: translateY(-4px); |
| 65 | + text-shadow: 0 0 25px rgba(255, 186, 222, 0.8); |
| 66 | + } |
| 67 | +} |
| 68 | + |
| 69 | +/* Spinner */ |
| 70 | +.loader-spinner { |
| 71 | + width: 40px; |
| 72 | + height: 40px; |
| 73 | + border: 3px solid rgba(255, 186, 222, 0.2); |
| 74 | + border-top-color: #ffbade; |
| 75 | + border-radius: 50%; |
| 76 | + animation: spin 0.8s linear infinite; |
| 77 | +} |
| 78 | + |
| 79 | +@keyframes spin { |
| 80 | + to { transform: rotate(360deg); } |
| 81 | +} |
| 82 | + |
| 83 | +/* Smooth content reveal for staggered elements */ |
| 84 | +.page-transition.enter .anime-card, |
| 85 | +.page-transition.enter .browse-card, |
| 86 | +.page-transition.enter .schedule-card, |
| 87 | +.page-transition.enter .trending-item, |
| 88 | +.page-transition.enter .top-item { |
| 89 | + animation: staggerReveal 0.5s ease-out backwards; |
| 90 | +} |
| 91 | + |
| 92 | +.page-transition.enter .anime-card:nth-child(1) { animation-delay: 0.05s; } |
| 93 | +.page-transition.enter .anime-card:nth-child(2) { animation-delay: 0.1s; } |
| 94 | +.page-transition.enter .anime-card:nth-child(3) { animation-delay: 0.15s; } |
| 95 | +.page-transition.enter .anime-card:nth-child(4) { animation-delay: 0.2s; } |
| 96 | +.page-transition.enter .anime-card:nth-child(5) { animation-delay: 0.25s; } |
| 97 | +.page-transition.enter .anime-card:nth-child(6) { animation-delay: 0.3s; } |
| 98 | + |
| 99 | +@keyframes staggerReveal { |
| 100 | + 0% { |
| 101 | + opacity: 0; |
| 102 | + transform: translateY(20px); |
| 103 | + } |
| 104 | + 100% { |
| 105 | + opacity: 1; |
| 106 | + transform: translateY(0); |
| 107 | + } |
| 108 | +} |
0 commit comments