import React, { useRef, useLayoutEffect } from 'react'; import { motion } from 'framer-motion'; import gsap from 'gsap'; import { ScrollTrigger } from 'gsap/ScrollTrigger'; gsap.registerPlugin(ScrollTrigger); const Hero: React.FC = () => { const containerRef = useRef(null); const imageRef = useRef(null); useLayoutEffect(() => { const ctx = gsap.context(() => { // Parallax Background gsap.to(imageRef.current, { yPercent: 30, ease: "none", scrollTrigger: { trigger: containerRef.current, start: "top top", end: "bottom top", scrub: true } }); // Text Stagger Animation gsap.fromTo(".hero-stagger", { y: 50, opacity: 0 }, { y: 0, opacity: 1, duration: 1, stagger: 0.2, ease: "power3.out", delay: 0.2 } ); }, containerRef); return () => ctx.revert(); }, []); return (
Abstract dark technology background
Established 1998

Reliable IT Services
for Over 25 Years.

Bay Area Affiliates is your silent partner in technology. We provide the infrastructure that whispers clarity, ensures uptime, and guides your business growth.

Explore Services Get a Consultation
); }; export default Hero;