From 8deb92c0ffd51ccca7536b7f2e744e0553ecea85 Mon Sep 17 00:00:00 2001 From: philipcheung Date: Sat, 25 Oct 2025 20:19:33 +0800 Subject: [PATCH] hero2 animation updated --- src/components/new_ui/hero1.tsx | 4 ++-- src/components/new_ui/hero2.tsx | 28 ++++++++++++++++++++++------ 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/src/components/new_ui/hero1.tsx b/src/components/new_ui/hero1.tsx index fa7799a..21e406e 100644 --- a/src/components/new_ui/hero1.tsx +++ b/src/components/new_ui/hero1.tsx @@ -94,7 +94,7 @@ function Hero1() { maxW={{ base: "70%", sm: "70%", md: "70%", lg: "70%", xl: "70%" }} bottom={'10px'} display={{ base: "block", sm: "block", md: "none", lg: "none", xl: "none" }} - cycleDuration={0.3} + cycleDuration={0.5} intensity={0} /> {/* Desktop arrow - shown on md, lg, xl */} @@ -105,7 +105,7 @@ function Hero1() { maxW={{ base: "70%", sm: "70%", md: "70%", lg: "70%", xl: "70%" }} bottom={'10px'} display={{ base: "none", sm: "none", md: "block", lg: "block", xl: "block" }} - cycleDuration={0.3} + cycleDuration={0.5} intensity={0} /> {/* signs */} diff --git a/src/components/new_ui/hero2.tsx b/src/components/new_ui/hero2.tsx index 4e36273..eb9b1f9 100644 --- a/src/components/new_ui/hero2.tsx +++ b/src/components/new_ui/hero2.tsx @@ -1,4 +1,8 @@ import { Box, Stack, Image } from '@chakra-ui/react' +import { motion } from 'framer-motion' + +const MotionImage = motion.create(Image) + function Hero2() { return ( - - -