sambaker / awe-core

Artefact Web Extensions JS core
MIT License
2 stars 1 forks source link

Add new API to setAnimationCallback #2

Closed ericcroskeyartefact closed 12 years ago

ericcroskeyartefact commented 12 years ago

Have the animation callback return

( delta, elapsed, iterations )

instead of

( delta, elapsed )

to show the number of times it has been called back. The first callback would be 1.

To the instancer add onCancelCallback and onEndCallback to get callbacks when cancelling or when the animation has ended.

Awe.setAnimationCallback( myCallback, myCancelCallback, myEndCallback )