"use client"; import React from "react"; import { gsap } from "gsap"; // import scrollTrigger from "gsap/ScrollTrigger"; const BG = () => { React.useEffect(() => { // gsap.registerPlugin(scrollTrigger); gsap.to("#bg-blurred-image", { scrollTrigger: { scrub: 5, }, y: 50, scale: 0.8, }); gsap.to("#bg-image", { scrollTrigger: { scrub: 2, }, y: 50, opacity: 0, }); }, []); return ( bg-image bg-image ); }; export default BG;