mirror of
https://github.com/Such-Software/such.software.git
synced 2026-10-17 05:32:05 +02:00
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:
@@ -145,7 +145,7 @@ export function HeroSplash({ onEnter, sectionRef }: { onEnter: () => void; secti
|
|||||||
/>
|
/>
|
||||||
<motion.div
|
<motion.div
|
||||||
style={{ filter: entering ? "url(#splash-water)" : undefined }}
|
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 }}
|
animate={entering ? { opacity: [1, 1, 0], scale: [1, 1.06, 1.14] } : { opacity: 1, scale: 1, y: animate ? [0, -8, 0] : 0 }}
|
||||||
transition={
|
transition={
|
||||||
entering
|
entering
|
||||||
|
|||||||
Reference in New Issue
Block a user