Animation class

The interface of the Web Animations API represents a single animation player and provides playback controls and a timeline for an animation node or source.

EventTarget

Animation

Implemented types
Implementers
Available extensions
Annotations
  • @JS.new()
  • @staticInterop

Constructors

Animation([AnimationEffect? effect, AnimationTimeline? timeline])
factory

Properties

currentTime ↔ dynamic

Available on Animation, provided by the PropsAnimation extension

getter/setter pair
effect ↔ AnimationEffect?

Available on Animation, provided by the PropsAnimation extension

getter/setter pair
finished → Future<Animation>

Available on Animation, provided by the PropsAnimation extension

no setter
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String

Available on Animation, provided by the PropsAnimation extension

getter/setter pair
oncancel ↔ EventHandlerNonNull<Event>?

Available on Animation, provided by the PropsAnimation extension

getter/setter pair
onfinish ↔ EventHandlerNonNull<Event>?

Available on Animation, provided by the PropsAnimation extension

getter/setter pair
onremove ↔ EventHandlerNonNull<Event>?

Available on Animation, provided by the PropsAnimation extension

getter/setter pair
pending → bool

Available on Animation, provided by the PropsAnimation extension

no setter
playbackRate ↔ double

Available on Animation, provided by the PropsAnimation extension

getter/setter pair
playState → AnimationPlayState

Available on Animation, provided by the PropsAnimation extension

no setter
ready → Future<Animation>

Available on Animation, provided by the PropsAnimation extension

no setter
replaceState → AnimationReplaceState

Available on Animation, provided by the PropsAnimation extension

no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startTime ↔ dynamic

Available on Animation, provided by the PropsAnimation extension

getter/setter pair
timeline ↔ AnimationTimeline?

Available on Animation, provided by the PropsAnimation extension

getter/setter pair

Methods

addEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

cancel() → void

Available on Animation, provided by the PropsAnimation extension

commitStyles() → void

Available on Animation, provided by the PropsAnimation extension

dispatchEvent(Event event) → bool

Available on EventTarget, provided by the PropsEventTarget extension

finish() → void

Available on Animation, provided by the PropsAnimation extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void

Available on Animation, provided by the PropsAnimation extension

persist() → void

Available on Animation, provided by the PropsAnimation extension

play() → void

Available on Animation, provided by the PropsAnimation extension

removeEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

reverse() → void

Available on Animation, provided by the PropsAnimation extension

toString() → String
A string representation of this object.
inherited
updatePlaybackRate(double playbackRate) → void

Available on Animation, provided by the PropsAnimation extension

Operators

operator ==(Object other) → bool
The equality operator.
inherited