reanima
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

reanima

Animate react components with debug player that can rewind

  1. Create animated component like:
const Counter = () => {
  const frame = useFrame()
  const color = interpolateColors(frame, [0, 60], ['white', 'red'])

  return <div style={{ color }}>{frame}</div>
}
  1. Wrap you component with debug player like:
const counter = withPlayer(({ useFrame }) => {
  ...
})
  1. Debug


  1. Remove withPlayer wrapper and you ready to deploy. Profit!

Package Sidebar

Install

npm i reanima

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

29 kB

Total Files

14

Last publish

Collaborators

  • infely