Module AnimatedRe.Animation
type endResult
= Js.t({. finished : bool, })
;If the animation finished running normally, the completion callback will be invoked with
finished
true
. If the animation is done because stop() was called on it before it could finish (e.g. because it was interrupted by a gesture or another animation), then it will receivefinished
false
.
type endCallback
= endResult => unit
;start
takes this callback that will be called when the animation is done. SeeendResult
for arguments.
let stop : t => unit;
Stops an animation
let start : t => ?callback:endCallback => unit => unit;
Starts an animation
let reset : t => unit;
Resets an animation