Fix mobile LCP: paint the splash logo at first render

The splash logo (the LCP element) started at opacity:0 and only faded in
after framer-motion hydrated, pushing mobile LCP to ~7s. Render it visible
immediately; the float/breath animations still layer on top.
This commit is contained in:
jwinterm
2026-06-06 15:33:02 -04:00
parent 11381bd1a0
commit 567edaed0d
@@ -145,7 +145,7 @@ export function HeroSplash({ onEnter, sectionRef }: { onEnter: () => void; secti
/>
<motion.div
style={{ filter: entering ? "url(#splash-water)" : undefined }}
initial={{ opacity: 0, scale: 0.94 }}
initial={{ opacity: 1, scale: 1 }}
animate={entering ? { opacity: [1, 1, 0], scale: [1, 1.06, 1.14] } : { opacity: 1, scale: 1, y: animate ? [0, -8, 0] : 0 }}
transition={
entering