
A CSS transition is enough for a hover state or a fade. It stops being enough when a page needs choreography: a headline that splits into letters, an image that slides in while a counter runs, the whole sequence tied to the scroll position and able to reverse when the visitor scrolls back. Built from hand-written keyframes and timers, that kind of motion becomes fragile quickly. GSAP is a JavaScript library made for exactly this job: precise control of timing over anything JavaScript can change.
This article explains what GSAP is, how its tweens, timelines and plugins work, where it fits, when CSS or another library is the better choice, and what changed after Webflow acquired it.
What is GSAP?
GSAP, short for GreenSock Animation Platform, is a framework-agnostic JavaScript animation library with no dependencies. It animates CSS properties, SVG, canvas and WebGL scenes, and in fact any numeric property of a JavaScript object, so it works the same way in plain HTML, React, Vue or a Webflow site.
GSAP was created by Jack Doyle, the founder of GreenSock. Its roots are in Flash: TweenLite and TweenMax began as ActionScript tweening tools, and GreenSock carried the same ideas to JavaScript as the web moved away from plugins. GSAP 3, the current major version, shipped in November 2019. It merged TweenLite, TweenMax, TimelineLite and TimelineMax into a single gsap object, simplified the API and was roughly half the file size of the old TweenMax.
Two recent changes matter for anyone choosing it today. On 15 October 2024 GreenSock announced that Webflow had acquired GSAP, and that the library would stay publicly available for use on the wider web, not only inside Webflow. Then, with version 3.13 in April 2025, GSAP became free for everyone, including commercial projects and all the plugins that used to be reserved for paying Club GSAP members, such as SplitText and MorphSVG. Those plugins now ship in the public npm package.
One licensing detail is worth knowing. GSAP is not open source in the MIT sense. It is distributed under a standard "no charge" licence owned by Webflow, which allows commercial use but prohibits using GSAP inside no-code visual animation tools that compete with Webflow's own.
How GSAP works
Tweens. A tween is a single animation. gsap.to() animates an element from its current state to the values you give, gsap.from() animates from those values to the current state, and gsap.fromTo() sets both ends. You describe the target and the duration; GSAP calculates every frame in between, with easing.
Timelines. A timeline is a container for tweens. Its position parameter lets you place each tween exactly: right after the previous one, overlapping it by half a second, or at a labelled point. The whole timeline can then be played, paused, reversed, sped up or jumped to any moment as one object. Changing the timing of one step does not mean recalculating every delay after it.
Plugins. The core is small, and plugins add specialised behaviour. ScrollTrigger ties animations to the scroll position, pins sections in place and "scrubs" a timeline as the user scrolls. Flip animates layout changes, such as a card moving into a new grid position. SplitText splits text into characters, words or lines, and MorphSVG morphs one SVG shape into another.
Context, cleanup and media queries. In component frameworks, animations must be removed when a component unmounts. gsap.context() groups everything a component created so it can be reverted in one call, and the official useGSAP() hook from @gsap/react does this automatically in React. gsap.matchMedia() runs animation code only while a media query matches and reverts it when the query stops matching. That is also how you respect prefers-reduced-motion: GSAP does not do it for you, but it makes doing it a few lines of code.
Key features
- Timeline sequencing with precise positioning, labels and nested timelines.
- Built-in easing curves, plus custom eases when the standard ones are not enough.
- Animates almost anything: CSS, SVG attributes, canvas and WebGL objects, or plain JavaScript values.
- ScrollTrigger for scroll-linked, pinned and scrubbed animation.
- Text and shape plugins, including SplitText and MorphSVG, free since version 3.13.
- Framework support: works with React, Vue, Svelte and plain HTML, with an official React hook.
- Consistent behaviour across browsers.
Where GSAP is used
- Marketing sites and product launches, where motion carries the story and a page has to feel crafted.
- Scroll-driven storytelling: long pages where sections pin, reveal and transform as the visitor scrolls.
- Animated SVG: illustrations, icons, logos and data visualisations.
- Interface details in web apps: transitions between states, list reordering, onboarding sequences.
- Webflow projects, where GSAP is built into Webflow's interaction tools and its plugins are hosted by Webflow.
GreenSock states that GSAP runs on more than 12 million websites.
When to choose GSAP, and when not to
Choose GSAP when:
- Motion is part of the product or the brand, not decoration added at the end.
- Several animations have to run in a precise sequence and stay easy to change.
- Animation has to follow the scroll position, with pinning and scrubbing.
- The same motion has to behave identically in Chrome, Safari and Firefox.
Look elsewhere when:
- The effect is a hover state, a fade or a simple transition. CSS transitions and animations do this with no JavaScript at all.
- You are in a React app and mainly need enter, exit and layout animations tied to component state. Motion (formerly Framer Motion) is built around that model.
- The animation is designed frame by frame in After Effects by a motion designer. Lottie plays that work back from an exported JSON file.
- You are building a no-code visual animation tool. GSAP's licence prohibits that use where it competes with Webflow.
The real cost of GSAP is not the library but the motion itself. Animation that ignores reduced-motion settings, blocks the main thread on first load or animates layout properties instead of transform and opacity hurts users and Core Web Vitals, whatever tool produced it.
GSAP and its alternatives
| Option | Type | Strength | Best fit |
|---|---|---|---|
| GSAP | JavaScript library | Timelines, ScrollTrigger, SVG and text plugins | Choreographed, scroll-driven, brand-led motion |
| CSS transitions and animations | Browser native | No JavaScript, no dependency | Hover states, fades, simple loops |
| Web Animations API | Browser native JavaScript API | Keyframes controllable from code, no library | Moderate sequences without a dependency |
| Motion (formerly Framer Motion) | JavaScript library, React-first | Declarative, state-driven, layout and exit animations | React interfaces |
| Lottie | Player for exported animations | Reproduces After Effects work | Illustrated motion made by designers |
The most common comparison is GSAP against Motion. They overlap less than it seems: Motion fits animations that follow component state in a React tree, while GSAP fits authored sequences where timing is the point. Many teams use CSS for small effects and keep GSAP for the moments that carry the story. Under the hood GSAP still writes to the same CSS and SVG properties as everything else, so it sits comfortably next to CSS3, Tailwind CSS and frameworks such as React, Vue.js or Next.js.
How we use GSAP at Internative
We reach for GSAP when a brand asks for motion design that has to sell. Its timeline API lets our designers and developers author complex choreography without fighting keyframes, and ScrollTrigger turns scroll-based storytelling into a few lines of declarative code. We always respect the visitor's reduced-motion preference, so accessibility does not have to compete with design.
The home page of this site is an example. Its hero scene is animated with GSAP, loaded only when the browser is idle and skipped entirely on small screens and for visitors who prefer reduced motion. Only transform and opacity are animated, so the motion does not slow down the first screen.
If you are planning a site or a product interface where motion is part of the experience, our prototyping and interaction design and custom website development teams can help you decide where animation earns its place.
Frequently asked questions
Is GSAP free?
Yes. Since version 3.13, released in April 2025, GSAP and all of its plugins, including the formerly paid SplitText and MorphSVG, are free for everyone, commercial projects included. It is distributed under Webflow's standard no-charge licence rather than an open-source licence, and that licence prohibits using GSAP in no-code animation tools that compete with Webflow.
Which is better, GSAP or Framer Motion?
It depends on the job. Motion, formerly Framer Motion, is designed for React and excels at animations driven by component state, such as enter, exit and layout transitions. GSAP is framework-agnostic and stronger at precise timelines, scroll-linked animation and SVG work. Some projects use both.
What are the alternatives to GSAP for web animation?
For simple effects, CSS transitions and animations, or the browser's Web Animations API, need no library at all. Motion is the common choice for React-centred interfaces, and Lottie plays animations designed in After Effects. GSAP remains the usual pick when sequences, scroll and SVG come together.
Does Webflow own GSAP?
Yes. Webflow acquired GreenSock, the company behind GSAP, in October 2024. GSAP remains available for any website or application, not only for sites built on Webflow, and its team continues to maintain it.
Related services
Where this topic becomes an engagement.
Keep reading
The articles that follow this one.



