onFinish(cancelled: boolean) => void | null — called when animation is
finished - a true parameter is passed to the callback if the animation was
cancelled
completeOnCancelboolean | null — true to skip to end of
animation on cancel (null)
removeOnFinishboolean — true to remove the animation from the
animation manager when it is finished (true)
namestring — animation name identifier (a random string)
durationnumber — in seconds (0)
delaynumber — delay before animation starts in seconds (0)
precisionnumber — precision to do calculations to (8)
timeKeeperTimeKeeper | null — animations need to be tied to a time
reference. If this is not supplied, then the default browser time reference
performance.now will be used and methods with TypeWhen parameters
will allow only 'now' and 'nextFrame' and not 'lastFrame', 'syncNow'.
When the animation step is created from an element in a figure (using
element.animations or element.animations.new()), then the
animation step will automatically inherit the figure's TimeKeeper.
Animation Step options object
onFinish(cancelled: boolean) => void|null— called when animation is finished - atrueparameter is passed to the callback if the animation was cancelledcompleteOnCancelboolean|null—trueto skip to end of animation on cancel (null)removeOnFinishboolean—trueto remove the animation from the animation manager when it is finished (true)namestring— animation name identifier (a random string)durationnumber— in seconds (0)delaynumber— delay before animation starts in seconds (0)precisionnumber— precision to do calculations to (8)timeKeeperTimeKeeper |null— animations need to be tied to a time reference. If this is not supplied, then the default browser time reference performance.now will be used and methods with TypeWhen parameters will allow only'now'and'nextFrame'and not'lastFrame','syncNow'. When the animation step is created from an element in a figure (usingelement.animationsorelement.animations.new()), then the animation step will automatically inherit the figure's TimeKeeper.