What is GSAP?
GSAP (GreenSock Animation Platform) is a fast and robust library to animate HTML, SVG, and JavaScript elements.
Basic Animation
gsap.to(".box", {
x: 300,
duration: 2,
ease: "bounce"
});
Timeline Control
let tl = gsap.timeline();
tl.to(".box", { x: 200 })
.to(".box", { rotate: 360 })
.to(".box", { scale: 1.5 });
GSAP can be used with ScrollTrigger for scroll animations and integrates well with React and Vue.