Skip to content

v2.0.0

Choose a tag to compare

@jeremenichelli jeremenichelli released this 31 May 10:07
· 11 commits to master since this release
a2998f5

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 the Tween instance
  • If you passed paused: true tweening won't start at instantiation time, call .start() to kick off later