package js.html
extends EventTarget
extended by CSSAnimation, CSSTransition
Available on jsThe
Animationinterface of the Web Animations API represents a single animation player and provides playback controls and a timeline for an animation node or source.Documentation Animation by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
new (?effect:KeyframeEffectReadOnly, ?timeline:AnimationTimeline)Throws:
null |
DOMError |
|---|
currentTime:FloatThe current time value of the animation in milliseconds, whether running or paused. If the animation lacks a AnimationTimeline, is inactive or hasn't been played yet, its value is null.
read only effect:AnimationEffectReadOnlyGets and sets the AnimationEffectReadOnly associated with this animation. This will usually be a KeyframeEffect object.
read only finished:Promise<Animation>Returns the current finished Promise for this animation.
id:StringGets and sets the String used to identify the animation.
oncancel:FunctionGets and sets the event handler for the cancel event.
onfinish:FunctionGets and sets the event handler for the finish event.
read only playState:AnimationPlayStateReturns an enumerated value describing the playback state of an animation.
playbackRate:FloatGets or sets the playback rate of the animation.
read only ready:Promise<Animation>Returns the current ready Promise for this animation.
startTime:FloatGets or sets the scheduled time when an animation's playback should begin.
read only timeline:AnimationTimelineGets or sets the AnimationTimeline associated with this animation.
cancel ():VoidClears all KeyframeEffect caused by this animation and aborts its playback.
finish ():VoidThrows:
null |
DOMError |
|---|
pause ():VoidThrows:
null |
DOMError |
|---|
play ():VoidThrows:
null |
DOMError |
|---|
reverse ():VoidThrows:
null |
DOMError |
|---|
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/Animation.html