Skip to content

Repository files navigation

GSAP SPA Manager

A framework-agnostic GSAP animation manager for Single Page Applications with automatic cleanup, persistence, and ScrollTrigger support.

Features

  • Framework Agnostic - Works with Swup, Barba.js, Astro, or standalone
  • Automatic Cleanup - Animations are killed on page transitions
  • Persistence Support - Mark animations to survive transitions
  • ScrollTrigger Management - Centralized registration and cleanup
  • Multiple Formats - ESM, CJS, and UMD builds

Quick Start

npm install gsap-spa-manager gsap
import { AM } from 'gsap-spa-manager';
import { gsap } from 'gsap';

AM.init({ debug: true });
AM.animate('hero', gsap.from('.hero', { opacity: 0, y: 50 }));

For full documentation and API reference, see the package README.

License

MIT Licensed. Made by LPdsgn.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages