0.1.2 • Published 3 months ago
@lynksen/react-scrolltrigger-reveal v0.1.2
React ScrollTrigger Reveal
Easily animate (reveal) any React elements on scroll with GSAP ScrollTrigger.
Supports custom animation parameters with gsap.from().
Getting started
- Install npm package:
npm install @lynksen/react-scrolltrigger-reveal
- Import the component inside your React project:
- Place any elements you want to animate on scroll, inside
<RevealOnScroll>
Usage
Demo
- Codepen
Features
- 👌🏻 Zero-config, easy to use
- 🧩 Written in TypeScript
✅ Compatible with GSAP's ScrollSmoother, ScrollTrigger
Caveats
- ⚠️ Compatibility with custom scroll smoothing libraries may not be possible.
License
MIT.