import React, { useRef, useLayoutEffect } from 'react'; import { motion, useMotionTemplate, useMotionValue } from 'framer-motion'; import gsap from 'gsap'; import { ScrollTrigger } from 'gsap/ScrollTrigger'; gsap.registerPlugin(ScrollTrigger); const Hero: React.FC = () => { const containerRef = useRef(null); const parallaxWrapperRef = useRef(null); const mouseX = useMotionValue(0); const mouseY = useMotionValue(0); const handleMouseMove = ({ currentTarget, clientX, clientY }: React.MouseEvent) => { const { left, top } = currentTarget.getBoundingClientRect(); mouseX.set(clientX - left); mouseY.set(clientY - top + 75); }; useLayoutEffect(() => { const ctx = gsap.context(() => { // Parallax Background gsap.to(parallaxWrapperRef.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 (
{/* Base Layer - Slightly Brighter */} Abstract dark technology background {/* Highlight Layer - Only visible via mask */}
Established 1998

Reliable IT Services
for Over 25 Years

Providing top-notch Computer & Networking solutions to the Coastal Bend community.

IT Services Get in Touch
); }; export default Hero;