GSAP practice
✓ Published0🌍 Public
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 descriptionReact Starter code.
MIT Licensed