1.1.2 • Published 2 years ago

@jdthornton/useanimate v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@jdthornton/useanimate

npm (scoped) npm bundle size (minified)

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>
  )
}