Skip to content

Instantly share code, notes, and snippets.

@noiredist
noiredist / RevealText.js
Created March 16, 2022 01:10 — forked from jonkwheeler/RevealText.js
React: Animation component using GSAP's SplitText plugin to reveal text on a page
// @flow
import { PureComponent, type Node, Fragment } from 'react';
import { TimelineLite } from 'gsap';
import SplitText from 'Lib/gsap-bonus/umd/SplitText';
import Waypoint from 'react-waypoint';
type RevealTextProps = {
children: Node,
waypointTopOffset: string,
waypointBottomOffset: string,