MCPcopy Index your code
hub / github.com/bitworking/react-gsap

github.com/bitworking/react-gsap @v3.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.2.1 ↗ · + Follow
161 symbols 325 edges 36 files 0 documented · 0% updated 59d agov3.2.1 · 2021-04-08★ 66015 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

react-gsap

React components for GSAP

NPM npm type definitions npm bundle size (version)

Introduction

react-gsap lets you use the GreenSock Animation Platform (GSAP) in React in a fully declarative way. It abstracts away the direct use of the GSAP Tween and Timeline functions.

If you need the full control it's possible by getting low level access to the underlying objects.

In addition to that it ships some GSAP Plugins and useful helper components.

From version 2 on it's build for GSAP 3 and only has gsap as a peer dependency. In this way you can update gsap separately from react-gsap.

It's built with TypeScript and ships the types directly in the package.

Documentation and examples are here: https://bitworking.github.io/react-gsap/

The examples on the documentation pages are all editable directly in the browser. So play with it!

Installation

npm install gsap react-gsap

About GSAP

GreenSock Animation Platform (GSAP) is a set of some JavaScript functions which let you tween a value/attribute/css property over time and insert these tweens into a timeline for more complex animations.

react-gsap just adds some React wrapper components for these functions, so also read the official GreenSock documentation to know how to do things:

GreenSock Docs

License

MIT © bitworking

Core symbols most depended-on inside this repo

nullishCoalescing
called by 13
packages/react-gsap/src/helper.ts
setPlayState
called by 12
packages/react-gsap/src/helper.ts
kill
called by 9
packages/react-gsap/src/tools/Reveal.tsx
cloneElement
called by 8
packages/react-gsap/src/Timeline.tsx
getGSAP
called by 6
packages/react-gsap/src/tools/Reveal.tsx
setProps
called by 4
packages/react-gsap/src/helper.ts
init
called by 3
packages/react-gsap/src/tools/Reveal.tsx
getDistance
called by 3
packages/react-gsap/src/plugins/PlugInSvgDraw.ts

Shape

Function 81
Method 62
Class 15
Enum 3

Languages

TypeScript100%

Modules by API surface

packages/react-gsap/src/tools/Scroller.tsx16 symbols
packages/react-gsap/src/helper.ts16 symbols
packages/react-gsap/src/Timeline.tsx16 symbols
packages/react-gsap/src/tools/Reveal.tsx15 symbols
packages/react-gsap/src/Tween.tsx13 symbols
packages/react-gsap/src/plugins/PlugInSvgDraw.ts12 symbols
packages/react-gsap/src/tools/ScrollTrigger.tsx9 symbols
packages/react-gsap/src/Provider.tsx7 symbols
packages/playground/src/examples/Timeline.tsx6 symbols
packages/playground/src/examples/Animation.tsx6 symbols
packages/docz/src/components/Animation.tsx6 symbols
packages/react-gsap/src/tools/Controls.tsx5 symbols

For agents

$ claude mcp add react-gsap \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact