🌐GreenSock Animation Platform (GSAP)
Also known as GSAP, GreenSock, gsap.to, ScrollTrigger
A free JavaScript tool that makes parts of a web page move and slide with ease.
Think of it like
It is like a puppet master. You say where each puppet goes, and it moves them in time.
Example
Emma's landing page needs three cards to slide in, one after another. She puts three gsap.to calls on a timeline.
Why it matters
Complex, well-timed motion is hard in plain CSS. GSAP makes it short, and it runs the same in every browser.
Definition
Example code
javascript
gsap.to(".box", { x: 100, duration: 1 });Common mistake
Key takeaways
- 1To a target. Say where it ends and how long.
- 2Timelines. Line up many moves in order.
- 3Scroll effects. ScrollTrigger ties motion to scrolling.