I am new to gsap and trying to make some animations on it, but when I set gsap to my header it doesn't work. Here is my code:
import { gsap } from "gsap";
let tl = gsap.timeline();
useEffect(() => {
tl.from(".lastHeader", { y: 50, duration: 1 });
}, []);
thanks in advance.