From 9d751e72f3478d7e233058efd897b90eabc7eb56 Mon Sep 17 00:00:00 2001 From: ashim-hq Date: Fri, 24 Apr 2026 00:31:13 +0800 Subject: [PATCH] fix: replace framer-motion FadeIn with CSS keyframe animations in hero to fix rendering issue --- apps/landing/src/components/hero.tsx | 53 ++++++++++++---------------- apps/landing/src/styles/globals.css | 11 ++++++ 2 files changed, 33 insertions(+), 31 deletions(-) diff --git a/apps/landing/src/components/hero.tsx b/apps/landing/src/components/hero.tsx index 9f67f4e5..a9c8b39c 100644 --- a/apps/landing/src/components/hero.tsx +++ b/apps/landing/src/components/hero.tsx @@ -1,7 +1,6 @@ "use client"; import { useCallback, useEffect, useRef, useState } from "react"; -import { FadeIn } from "./fade-in"; import { TypingCursor } from "./typing-cursor"; const wordCloud = [ @@ -115,39 +114,31 @@ export function Hero() {
- -

- Your images. Stay yours. -

-
+

+ Your images. Stay yours. +

- -

- The open-source, self-hosted image processing platform. -

-
+

+ The open-source, self-hosted image processing platform. +

- -

- -

-
+

+ +

- -
- - Get it for free - - → - - -
-
+
+ + Get it for free + + → + + +
); diff --git a/apps/landing/src/styles/globals.css b/apps/landing/src/styles/globals.css index b9fc366a..d5132b9c 100644 --- a/apps/landing/src/styles/globals.css +++ b/apps/landing/src/styles/globals.css @@ -18,3 +18,14 @@ .tool-card:hover { border-color: var(--cat-color); } + +@keyframes fadeUp { + from { + opacity: 0; + transform: translateY(20px); + } + to { + opacity: 1; + transform: translateY(0); + } +}