Skip to main content
100%

GSAP practice

✓ Published0🌍 Public
SSabin Bhandari
Last edited Jun 23, 2021
Created on Jun 23, 2021
Forked from Practice API Call

This example demonstrates a simple animated text element using GSAP, where the phrase “Hello React!” translates diagonally across the screen. It integrates React hooks, specifically `useRef` and `useEffect`, to manage the animation lifecycle. The code relies on GSAP’s `TweenLite` to animate the DOM node’s `x` and `y` properties over one second. The React component renders a styled message, and the animation is triggered once on mount, showcasing a basic interaction between React state management and GSAP’s tweening API.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes