diff --git a/src/components/bestoil.tsx b/src/components/bestoil.tsx index 9c5dbfa..7f5d864 100644 --- a/src/components/bestoil.tsx +++ b/src/components/bestoil.tsx @@ -4,7 +4,7 @@ import { motion, useInView } from 'framer-motion' import { useRef } from 'react' // Create motion components from Chakra components -const MotionBox = motion(Box); + const MotionStack = motion(Stack); @@ -17,12 +17,12 @@ function Bestoil() { // Create refs for elements we want to animate - const cookRef = useRef(null); + const oilCubesRef = useRef(null); // Check if elements are in view - const isCookInView = useInView(cookRef, { once: true }); + const isOilCubesInView = useInView(oilCubesRef, { once: true }); const oilCube = [ @@ -86,18 +86,11 @@ function Bestoil() { w='100%' align={"center"} > - - - + +