"use client" import { useRef, useState } from "react" import "../styles/custom.css" import AboutUs from "components/aboutUs/AboutUs" import Hero01 from "components/Hero01/Hero01" import OurServices from "components/OurServices/OurServices" import Portfolio from "components/Portfolio/Portfolio" import ContactUs from "components/ContactUs/ContactUs" import { motion, useScroll } from "framer-motion" export default function Web() { const [init, setInit] = useState(false) const [hovered, setHovered] = useState(false) const imgStyle = { transform: hovered ? "translateX(3px)" : "none", transition: "transform .2s", // Optional: Smooth transition } const wordVariants = { hidden: { opacity: 0, y: 20 }, visible: { opacity: 1, y: 0, transition: { duration: 0.9, staggerChildren: 0.1 } }, } const ref = useRef(null) const { scrollYProgress } = useScroll({ target: ref, offset: ["0 1", "0.9 1.9"], }) return (
) }