Skip to content
BENIBIX Learn

GreenSock Animation Platform (GSAP)

Development🌐 Web DevelopmentFrameworks

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

GSAP is a free JavaScript library for making smooth animations on web pages. You pick what to move, where it should end up and how long it takes. One call, gsap.to, moves an element there, over half a second unless you say otherwise. Timelines line up many moves in order. Add-ons such as ScrollTrigger play an animation as the reader scrolls. It is a Webflow product and free for everyone.

Example code

javascript
gsap.to(".box", { x: 100, duration: 1 });
The box slides 100 pixels to the right over one second.
GSAP, on the right, moves a box 100 pixels over one second.

Common mistake

Animating width or top, which makes the browser redo the layout. Move things with x and y, which stay smooth.

Key takeaways

  1. 1
    To a target. Say where it ends and how long.
  2. 2
    Timelines. Line up many moves in order.
  3. 3
    Scroll effects. ScrollTrigger ties motion to scrolling.