@jdthornton/useanimate
v1.1.2
Published
React animation hook
Downloads
5
Readme
@jdthornton/useanimate
React animation hook.
Install
$ npm install @jdthornton/useanimate
Usage
import useAnimate from "@jdthornton/useanimate";
function App({ isActive }){
cosnt { isAnimated, elementProps } = useAnimate(isActive);
return(
<div {...elementProps} className={isAnimated ? 'animated' : undefined}>
Animated
</div>
)
}