This commit is contained in:
2025-03-16 00:35:39 +08:00
parent a14b206d25
commit a909854e4c
6 changed files with 9 additions and 17 deletions

View File

@@ -1,16 +1,15 @@
import { Box, Stack, Image, Text, Flex, SimpleGrid } from '@chakra-ui/react'
import { colors } from '../colors';
import { useEffect, useRef, useState } from 'react';
import { } from '../colors';
import {useRef } from 'react';
import { motion, useInView } from 'framer-motion';
// Create motion versions of Chakra components
const MotionStack = motion(Stack);
const MotionImage = motion(Image);
const MotionBox = motion(Box);
function Compare() {
const compareRef = useRef(null);
const isInView = useInView(compareRef, { once: true, amount: 0.3 });
return (
<Box