"use client"; import React from "react"; import Image from "next/image"; import { gsap } from "gsap"; import { TextPlugin } from "gsap/all"; gsap.registerPlugin(TextPlugin); export default function Hero() { /** * Handle animations on page load */ React.useEffect(() => { const tl = gsap.timeline(); gsap.fromTo( "#hero-sub-text", { opacity: 0, }, { opacity: 1, delay: 0.5, duration: 1, } ); gsap.to("#hero-text", { text: "I'm Benjamin Toby, a Software Engineer and UI/UX expert.", delay: 1, duration: 2, ease: "none", }); gsap.fromTo( ".hero-button-link", { opacity: 0, }, { opacity: 1, delay: 3, duration: 1, stagger: 0.5, } ); }, []); /** * Render component */ return (
Benjamin Toby Image
Howdy Tech Enthusiasts

Linkedin Contact Me See my resume
); }