
GSAP
The GSAP module provides a high-performance framework to connect your Drupal website with the GreenSock Animation Platform (GSAP) ecosystem. This module is intended to be an API module for developers; the main aim is to integrate GSAP with libraries to manage it efficiently as a project dependency while streamlining your native asset pipeline for lightweight JavaScript web animations.
Whether you are a zero-code site builder looking to implement scroll-driven UX storytelling or a frontend developer managing complex UI transitions, this module balances architectural performance and layout flexibility. It serves as both a low-code configuration engine and a developer-friendly API framework.
Core Features
- On-Demand Plugin Loading: Selectively enable core assets or advanced tools from the GSAP Plugins Library (such as ScrollTrigger, Flip, or SplitText) globally or via targeted page conditions to prevent asset bloat.
- Low-Code GSAP Entities: Empower site creators to target CSS selectors and apply
to,from, orscrollTriggeranimations directly through the configuration UI without writing PHP or JavaScript code. - Performance-Optimized API: Maintain fast page speed and clean dependency injection by declaring GSAP scripts as native, conditional Drupal library dependencies that only execute when needed.
- Flexible Delivery Architecture: Serve your animation files locally via
composer.libraries.jsoncompliance or leverage high-speed custom CDNs for premium interactive modules.
Quick Start Configuration
- Navigate to
/admin/structure/gsapto handle plugin deployment and manage active animations. - For custom frontend development, reference dependencies within your theme or module's
*.libraries.ymlfile:
my-custom-animations:
js:
js/my-animations.js: {}
dependencies:
- gsap/scrolltrigger
Useful documentation and articles about GSAP library:
- GSAP Homepage - https://greensock.com/
- GSAP Documentation - http://greensock.com/docs/#/HTML5/
- GSAP Getting Started - http://greensock.com/get-started-js
Project information
- Project categories: Developer tools, Integrations
- Ecosystem: GSAP (Greensock)
332 sites report using this module
- Created by kyvour on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.


