From 5fc323677574fde2f224c9d3a2597fe1bf3170a8 Mon Sep 17 00:00:00 2001 From: denshooter Date: Wed, 4 Mar 2026 23:05:51 +0100 Subject: [PATCH] fix: remove Framer Motion scroll animations that caused invisible sections Framer Motion's initial={{ opacity: 0 }} was rendered as inline style='opacity:0' in SSR HTML. If client-side JS failed to hydrate properly, sections stayed permanently invisible. Removed whileInView scroll animations from About, Projects, Contact. Modal animations (AnimatePresence) kept as they only render on interaction. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- app/components/About.tsx | 24 ------------------------ app/components/Contact.tsx | 9 --------- app/components/Projects.tsx | 3 --- 3 files changed, 36 deletions(-) diff --git a/app/components/About.tsx b/app/components/About.tsx index 11eeba4..520d059 100644 --- a/app/components/About.tsx +++ b/app/components/About.tsx @@ -80,9 +80,6 @@ const About = () => { {/* 1. Large Bio Text */}
@@ -113,9 +110,6 @@ const About = () => { {/* 2. Activity / Status Box */} @@ -130,9 +124,6 @@ const About = () => { {/* 3. AI Chat Box */} @@ -147,9 +138,6 @@ const About = () => { {/* 4. Tech Stack */} @@ -186,9 +174,6 @@ const About = () => {
{/* Library - Larger Span */} @@ -211,9 +196,6 @@ const About = () => {
{/* My Gear (Uses) */} @@ -244,9 +226,6 @@ const About = () => { @@ -282,9 +261,6 @@ const About = () => { {/* 6. Hobbies */} diff --git a/app/components/Contact.tsx b/app/components/Contact.tsx index 80af0af..35202b0 100644 --- a/app/components/Contact.tsx +++ b/app/components/Contact.tsx @@ -163,9 +163,6 @@ const Contact = () => { {/* Header Card */}
@@ -184,9 +181,6 @@ const Contact = () => { {/* Info Side (Unified Connect Box) */} @@ -252,9 +246,6 @@ const Contact = () => { {/* Form Side */} diff --git a/app/components/Projects.tsx b/app/components/Projects.tsx index 1149366..5d04ecd 100644 --- a/app/components/Projects.tsx +++ b/app/components/Projects.tsx @@ -78,9 +78,6 @@ const Projects = () => { projects.map((project) => (