0.1.0 • Published 4 years ago
gsap-hooks v0.1.0
gsap-hooks
React hooks for gsap timeline
useTimeline hook
import { useTimeline } from 'gsap-hooks';
function App() {
...
const [ready, timeline] = useTimeline();
...
if (ready) {
timeline.add(
// comma separated animations
// i.e.
gsap.fromTo(ref, <your from object>, <your to object>)
);
}
...
}
0.1.0
4 years ago