Skip to content

infely/reanima

Repository files navigation

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 like:
  1. Remove withPlayer wrapper and you ready to deploy. Profit!

About

Animate react components with debug player that can rewind

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published