Controls
The Controls component is a helper that you can use to debug your animations. Just wrap it around a Tween or Timeline component and you'll get control buttons and a slider.
With the optional playState
prop you can set an initial play state.
You can use the PlayState
enum/object or just the strings "play", "restart", "reverse", "restartReverse", "stop", "stopEnd", "pause" or "resume".
import { Controls, PlayState, Tween } from 'react-gsap';