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>
This commit is contained in:
denshooter
2026-03-04 23:05:51 +01:00
parent 9ae6ada0a6
commit 5fc3236775
3 changed files with 0 additions and 36 deletions
-3
View File
@@ -78,9 +78,6 @@ const Projects = () => {
projects.map((project) => (
<motion.div
key={project.id}
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
className="group relative"
>
<Link href={`/${locale}/projects/${project.slug}`} className="block">