# GreenSock Animation Platform (GSAP)

> A free JavaScript tool that makes parts of a web page move and slide with ease.

**Field:** Software Development  
**Category:** Web Development  
**Also known as:** GSAP, GreenSock, gsap.to, ScrollTrigger

## Think of it like

It is like a puppet master. You say where each puppet goes, and it moves them in time.

## 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

Emma's landing page needs three cards to slide in, one after another. She puts three gsap.to calls on a timeline.

## Example code

```javascript
gsap.to(".box", { x: 100, duration: 1 });
```

The box slides 100 pixels to the right over one second.

## Why it matters

Complex, well-timed motion is hard in plain CSS. GSAP makes it short, and it runs the same in every browser.

## Common mistake

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

## Three principles

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

## Related terms

- [JavaScript](https://learn.benibix.com/term/development/javascript)
- [CSS Animation](https://learn.benibix.com/term/design/css-animation)
- [CSS Transition](https://learn.benibix.com/term/design/css-transition)
- [Easing](https://learn.benibix.com/term/design/easing)
- [Keyframe](https://learn.benibix.com/term/design/keyframe)

![Two panels. On the left, jQuery: the line $(".btn").hide() finds every button with the class btn on the page and hides it. On the right, GSAP: the line gsap.to(".box", { x: 100, duration: 1 }) moves a box 100 pixels to the right over one second, drawn as a box sliding along a time line from 0 to 1 second.](https://learn.benibix.com/diagrams/dev5-front-end-libs.svg)

---

Source: https://learn.benibix.com/term/development/gsap
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
