0.0.33 • Published 2 years ago
react-spring-animation v0.0.33
React Spring Hooks.
Examples
useTween
React animation hooks that hooks between two values choosing your own duration.
import { useTween } from 'react-spring-animation';
const Tween = () => {
const t = useTween(0, 1, 3000);
return (
<div>
Tween: {t}
</div>
);
};
useTween(start, end, duration);