Too Long; Didn't Read
Using Web Animations API and React hooks, we can create highly-performant, flexible and manipulable web animations in the modern world. The API design of the hook inherits the DX of the Web Animation API but also provides useful features and sugar events to us. The hook exposes the animation instance for us to interact with animations. This hook exposes animation instance to us by the React hook value. Play on CodeSandbox or use useWebAnimations from "@wellyshen/use-web-animations"