# GSAP, Lenis and AutoAnimate

Three small libraries give Connect its motion. GSAP, with its ScrollTrigger and MotionPath plugins, animates the landing page. Lenis smooths scrolling there. AutoAnimate animates list changes, such as toasts and the Needs You queue, inside the app. All three are vendored files, and motion is reduced for people who ask their system for less.

- **Status:** Reference
- **Audience:** both, developer
- **Last verified:** 2026-11-02
- **Canonical:** https://connectbyjbrh.com/docs/technology/motion-libraries/

## What it is

GSAP (the GreenSock Animation Platform) is a JavaScript animation library, now owned by Webflow. Since 2025 it and all its plugins are free to use under GSAP's Standard "No Charge" License, which is free but not an open-source licence.

Lenis, from darkroom.engineering, is a smooth-scroll library under MIT. AutoAnimate, from FormKit, adds enter, leave and move transitions to a parent element's children with one call, also under MIT.

**Category** — Animation and scrolling
**Versions** — GSAP 3.15.0 (file header), Lenis 1.3.26 (in the file), AutoAnimate as vendored
**Files** — `webapp/vendor/gsap.min.js`, `ScrollTrigger.min.js`, `MotionPathPlugin.min.js`, `lenis.esm.js`, `auto-animate.esm.js`
**Official sites** — [gsap.com](https://gsap.com/), [lenis.darkroom.engineering](https://lenis.darkroom.engineering/), [auto-animate.formkit.com](https://auto-animate.formkit.com/)

## Where Connect uses it

| Place in Connect | What it does there |
|---|---|
| `webapp/landing/landing.js`, `theme.js` | GSAP timelines, scroll-triggered sections and Lenis scrolling |
| `webapp/src/ui/toast.js` | AutoAnimate for toasts arriving and leaving |
| `webapp/src/features/needs-you/view.js` | AutoAnimate as items are approved and leave the queue |

## How it connects

1. The page checks `prefers-reduced-motion`
2. If motion is allowed, GSAP and Lenis initialise on the landing page
3. ScrollTrigger ties animations to scroll position
4. In the app, AutoAnimate watches list containers
5. With reduced motion, content appears in place without animation

## Benefits and limits

What it gives Connect:

- Motion that explains change: an approved item visibly leaves the queue.
- Small, dependency-free files that load only where used.
- GSAP is now free for commercial use, so there is no licence fee.

Where it stops, and what Connect does about it:

- GSAP's licence is not open source. Webflow owns it, and its terms restrict some uses, such as competing no-code animation tools. Connect uses it only as a page library.
- Smooth scrolling can feel wrong to some people and with some assistive technology. It is off when reduced motion is set.
- Animation must never be the only signal of a change. Text and state carry the meaning.

## Security and privacy

- All three are vendored, served from Connect's own origin, with no third-party CDN at run time.
- No library here makes network requests.
- The vendored files are reviewed like any other change.

## Licence, cost and versions

| Question | Answer |
|---|---|
| Licences | GSAP: Standard "No Charge" License (Webflow). Lenis: MIT. AutoAnimate: MIT |
| Cost | None |
| Versions | GSAP 3.15.0; Lenis 1.3.26; AutoAnimate as vendored |
| Compatibility | Current browsers. Animations honour `prefers-reduced-motion` |

## Troubleshooting

**The landing page feels sluggish on a phone** — Scroll-linked animations are heavy on low-end devices. Reduced motion turns them off.
**A list jumps instead of animating** — AutoAnimate was not attached to that container, or reduced motion is on.
**Console error about a GSAP plugin** — The plugin file is not loaded, or is registered before GSAP itself.

## Official references

- [GSAP documentation](https://gsap.com/docs/v3/)
- [GSAP Standard License](https://gsap.com/community/standard-license/)
- [Lenis on GitHub](https://github.com/darkroomengineering/lenis)
- [AutoAnimate documentation](https://auto-animate.formkit.com/)

## Questions

### Can I turn the animations off?

Yes. Set your operating system's reduce-motion preference, and Connect's pages follow it.

### Is GSAP open source?

No. It is free to use, including commercially, under GSAP's own Standard License, but that is not an open-source licence. Lenis and AutoAnimate are MIT.

## Related

- [Web accessibility](https://connectbyjbrh.com/docs/technology/accessibility/)
- [The no-build browser frontend](https://connectbyjbrh.com/docs/technology/browser-modules/)
- [Page experience and Core Web Vitals](https://connectbyjbrh.com/docs/technology/core-web-vitals/)
- [three.js and the Live Office](https://connectbyjbrh.com/docs/technology/threejs/)

## What this page is based on

- `webapp/vendor/gsap.min.js` (header)
- `webapp/vendor/lenis.esm.js`
- `webapp/landing/landing.js`
- https://gsap.com/community/standard-license/
