reanima
v0.1.1
Published
Animate react components with debug player that can rewind
Downloads
2
Maintainers
Readme
reanima
Animate react components with debug player that can rewind
- Create animated component like:
const Counter = () => {
const frame = useFrame()
const color = interpolateColors(frame, [0, 60], ['white', 'red'])
return <div style={{ color }}>{frame}</div>
}
- Wrap you component with debug player like:
const counter = withPlayer(({ useFrame }) => {
...
})
- Debug
- Remove
withPlayer
wrapper and you ready to deploy. Profit!