Skip to main content

useSynchronizedAnimation

A react hook to synchronize CSS animations across multiple elements.

You pass in the name of the animation you want to synchronize. The hook returns a ref, which you pass to your element. The animation on your element will be synchronized to the first animation with the same name on the page.

Bruk

Edit this page on github.com (opens in a new tab)