This is a responsive, animated word rotator component built with React and GSAP. It cycles through a set of words in a sentence, animating them vertically with smooth easing, while dynamically adjusting the container width to fit each word.
text-rotator-demo.mp4
- Smooth vertical animation for words using GSAP timelines.
- Dynamically adjusts rotator width based on the current word.
- Tracks the current word to maintain state even after font size changes.
- Responsive to font size changes using
ResizeObserver.