v2.0.0
2.0.0 (2019-05-31)
BREAKING CHANGES
- Now the library exports a class you need to instance before tweening.
import {Tween} from 'phena'
const animation = new Tween({ from: 0, to: 5, duration: 500, paused: true })
animation.start()Features
- You can now cancel a tweening by running
.cancel()on theTweeninstance - If you passed
paused: truetweening won't start at instantiation time, call.start()to kick off later