Refactor subtitle presentation in index.html and enhance animations in style.css. Wrapped the subtitle in a new div for improved styling and added slide and fade animations to enhance visual appeal during the title display.
Browse filesFiles changed (2)
66 unmodified lines6768697071727366 unmodified lines<body><div id="title-overlay"><h1 id="title">LoFinity</h1><p id="subtitle">♪ chill beats, freshly vended</p></div><div id="vending-label" class="hover-label"><span>♪ vend a vibe</span></div><div id="collection-label" class="hover-label">66 unmodified lines67686970717273747566 unmodified lines<body><div id="title-overlay"><h1 id="title">LoFinity</h1><div class="subtitle-wrap"><p id="subtitle">♪ chill beats, freshly vended</p></div></div><div id="vending-label" class="hover-label"><span>♪ vend a vibe</span></div><div id="collection-label" class="hover-label">
50 unmodified lines5152535455565758596061622 unmodified lines656667686970717 unmodified lines79808182838450 unmodified linestitle-bob 5.5s ease-in-out 1.6s infinite alternate;}#subtitle {font-family: "Baloo 2", sans-serif;font-weight: 600;font-size: clamp(0.95rem, 2.2vw, 1.3rem);color: rgba(255, 255, 255, 0.95);margin: 1.1rem 0 0;letter-spacing: 0.14em;text-transform: lowercase;padding: 0.45em 1.4em;2 unmodified linesborder: 1px solid rgba(255, 255, 255, 0.3);backdrop-filter: blur(6px);-webkit-backdrop-filter: blur(6px);animation: title-in 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;}@keyframes title-in {7 unmodified lines}}@keyframes title-bob {from {transform: translateY(0);50 unmodified lines515253545556575859606162636465666768697071722 unmodified lines7576777879808182837 unmodified lines91929394959697989910010110210310410510610710810911011111211311450 unmodified linestitle-bob 5.5s ease-in-out 1.6s infinite alternate;}/* The transform-based entrance lives on the wrapper, NOT on #subtitle: anelement with backdrop-filter loses its blur the moment it also carries atransform (and title-in's `both` fill left one on permanently), which iswhat wiped the glass during the intro. A 2D transform on an ancestor is nota backdrop root, so the pill's blur survives. */.subtitle-wrap {margin-top: 1.1rem;animation: subtitle-slide 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;}#subtitle {font-family: "Baloo 2", sans-serif;font-weight: 600;font-size: clamp(0.95rem, 2.2vw, 1.3rem);color: rgba(255, 255, 255, 0.95);margin: 0;letter-spacing: 0.14em;text-transform: lowercase;padding: 0.45em 1.4em;2 unmodified linesborder: 1px solid rgba(255, 255, 255, 0.3);backdrop-filter: blur(6px);-webkit-backdrop-filter: blur(6px);/* opacity-only fade — opacity on the element itself does not break its ownbackdrop-filter, unlike a transform would */animation: subtitle-fade 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;}@keyframes title-in {7 unmodified lines}}@keyframes subtitle-slide {from {transform: translateY(28px) scale(0.96);}to {transform: translateY(0) scale(1);}}@keyframes subtitle-fade {from {opacity: 0;}to {opacity: 1;}}@keyframes title-bob {from {transform: translateY(0);
frontend/index.html+3-1
frontend/style.css+32-2