The Animation interface of the Web Animations API represents single animation player and provides playback controls and a for an animation node or source.
The Animation interface of the Web Animations API represents single animation player and provides playback controls and a for an animation node or source.
(cancel this)
Method.
The Web Animations API's cancel() method of the web.Animation
clears all web.KeyframeEffect
s caused by this animation and
its playback.
Animation.cancel();
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/cancel
Method. The Web Animations API's cancel() method of the `web.Animation` clears all `web.KeyframeEffect`s caused by this animation and its playback. `Animation.cancel();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/cancel`
Constructor.
The Animation() constructor of the Web Animations API returns a new Animation object instance.
effect Optional
The target effect, as an object based on the web.AnimationEffectReadOnly
interface, to assign to the animation. Although in the future other effects such as SequenceEffects or GroupEffects might be possible, the only kind of effect currently available is web.KeyframeEffect
. This can be null (which is the default) to indicate that there should be no effect applied.
timeline Optional
Specifies the timeline with which to associate the animation, as an object of a type based on the web.AnimationTimeline
interface. Currently the only timeline type available is web.DocumentTimeline
, but in the future there my be timelines associated with gestures or scrolling, for example. The default value is web.Document.timeline
, but this can be set to null as well.
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/Animation
Constructor. The Animation() constructor of the Web Animations API returns a new Animation object instance. effect Optional The target effect, as an object based on the `web.AnimationEffectReadOnly` interface, to assign to the animation. Although in the future other effects such as SequenceEffects or GroupEffects might be possible, the only kind of effect currently available is `web.KeyframeEffect`. This can be null (which is the default) to indicate that there should be no effect applied. timeline Optional Specifies the timeline with which to associate the animation, as an object of a type based on the `web.AnimationTimeline` interface. Currently the only timeline type available is `web.DocumentTimeline`, but in the future there my be timelines associated with gestures or scrolling, for example. The default value is `web.Document.timeline`, but this can be set to null as well. See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/Animation`
(current-time this)
Property.
The Animation.currentTime property of the Web Animations API and sets the current time value of the animation in milliseconds, running or paused.
var currentTime = Animation.currentTime; Animation.currentTime = newTime;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/currentTime
Property. The Animation.currentTime property of the Web Animations API and sets the current time value of the animation in milliseconds, running or paused. `var currentTime = Animation.currentTime; Animation.currentTime = newTime;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/currentTime`
(effect this)
Property.
The Animation.effect property of the Web Animations API gets
sets the target effect of an animation. The target effect may
either an effect object of a type based on web.AnimationEffectReadOnly
,
as web.KeyframeEffect
, or null.
`var effect = Animation.effect;
Animation.effect = AnimationEffectReadOnly`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/effect
Property. The Animation.effect property of the Web Animations API gets sets the target effect of an animation. The target effect may either an effect object of a type based on `web.AnimationEffectReadOnly`, as `web.KeyframeEffect`, or null. `var effect = Animation.effect; Animation.effect = AnimationEffectReadOnly` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/effect`
(finish this)
Method.
The finish() method of the Web Animations API's web.Animation
sets the current playback time to the end of the animation corresponding
the current playback direction.
Animation.finish();
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/finish
Method. The finish() method of the Web Animations API's `web.Animation` sets the current playback time to the end of the animation corresponding the current playback direction. `Animation.finish();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/finish`
(finished this)
Property.
The Animation.finished read-only property of the Web Animations
returns a web.Promise
which resolves once the animation has
playing.
var animationsPromise = Animation.finished;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/finished
Property. The Animation.finished read-only property of the Web Animations returns a `web.Promise` which resolves once the animation has playing. `var animationsPromise = Animation.finished;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/finished`
(id this)
Property.
The Animation.id property of the Web Animations API returns or a string used to identify the animation.
`var animationsId = Animation.id;
Animation.id = newIdString;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/id
Property. The Animation.id property of the Web Animations API returns or a string used to identify the animation. `var animationsId = Animation.id; Animation.id = newIdString;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/id`
(oncancel this)
Property.
The oncancel property of the Web Animations API's web.Animation
is the event handler for the cancel event.
`var cancelHandler = Animation.oncancel;
Animation.oncancel = cancelHandler;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/oncancel
Property. The oncancel property of the Web Animations API's `web.Animation` is the event handler for the cancel event. `var cancelHandler = Animation.oncancel; Animation.oncancel = cancelHandler;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/oncancel`
(onfinish this)
Property.
The web.Animation
interface's onfinish property (from the Web
API) is the event handler for the finish event. This event is
when the animation finishes playing.
`var finishHandler = Animation.onfinish;
Animation.onfinish = finishHandler;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/onfinish
Property. The `web.Animation` interface's onfinish property (from the Web API) is the event handler for the finish event. This event is when the animation finishes playing. `var finishHandler = Animation.onfinish; Animation.onfinish = finishHandler;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/onfinish`
(pause this)
Method.
The pause() method of the Web Animations API's web.Animation
suspends playback of the animation.
animation.pause();
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/pause
Method. The pause() method of the Web Animations API's `web.Animation` suspends playback of the animation. `animation.pause();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/pause`
(pending this)
Property.
The read-only Animation.pending property of the Web Animations indicates whether the animation is currently waiting for an asynchronous such as initiating playback or pausing a running animation.
var pending = Animation.pending;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/pending
Property. The read-only Animation.pending property of the Web Animations indicates whether the animation is currently waiting for an asynchronous such as initiating playback or pausing a running animation. `var pending = Animation.pending;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/pending`
(play this)
Method.
The play() method of the Web Animations API's web.Animation
starts or resumes playing of an animation. If the animation is
calling play() restarts the animation, playing it from the beginning.
animation.play();
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/play
Method. The play() method of the Web Animations API's `web.Animation` starts or resumes playing of an animation. If the animation is calling play() restarts the animation, playing it from the beginning. `animation.play();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/play`
(play-state this)
Property.
The Animation.playState property of the Web Animations API returns sets an enumerated value describing the playback state of an
`var currentPlayState = Animation.playState;
Animation.playState = newState;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/playState
Property. The Animation.playState property of the Web Animations API returns sets an enumerated value describing the playback state of an `var currentPlayState = Animation.playState; Animation.playState = newState;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/playState`
(playback-rate this)
Property.
The Animation.playbackRate property of the Web Animations API or sets the playback rate of the animation.
`var currentPlaybackRate = Animation.playbackRate;
Animation.playbackRate = newRate;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/playbackRate
Property. The Animation.playbackRate property of the Web Animations API or sets the playback rate of the animation. `var currentPlaybackRate = Animation.playbackRate; Animation.playbackRate = newRate;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/playbackRate`
(ready this)
Property.
The read-only Animation.ready property of the Web Animations
returns a web.Promise
which resolves when the animation is
to play. A new promise is created every time the animation enters
"pending" play state as well as when the animation is canceled,
in both of those scenarios, the animation is ready to be started
var readyPromise = Animation.ready;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/ready
Property. The read-only Animation.ready property of the Web Animations returns a `web.Promise` which resolves when the animation is to play. A new promise is created every time the animation enters \"pending\" play state as well as when the animation is canceled, in both of those scenarios, the animation is ready to be started `var readyPromise = Animation.ready;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/ready`
(reverse this)
Method.
The Animation.reverse() method of the web.Animation
Interface
the playback direction, meaning the animation ends at its beginning.
called on an unplayed animation, the whole animation is played
If called on a paused animation, the animation will continue
reverse.
animation.reverse();
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/reverse
Method. The Animation.reverse() method of the `web.Animation` Interface the playback direction, meaning the animation ends at its beginning. called on an unplayed animation, the whole animation is played If called on a paused animation, the animation will continue reverse. `animation.reverse();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/reverse`
(set-current-time! this val)
Property.
The Animation.currentTime property of the Web Animations API and sets the current time value of the animation in milliseconds, running or paused.
var currentTime = Animation.currentTime; Animation.currentTime = newTime;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/currentTime
Property. The Animation.currentTime property of the Web Animations API and sets the current time value of the animation in milliseconds, running or paused. `var currentTime = Animation.currentTime; Animation.currentTime = newTime;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/currentTime`
(set-effect! this val)
Property.
The Animation.effect property of the Web Animations API gets
sets the target effect of an animation. The target effect may
either an effect object of a type based on web.AnimationEffectReadOnly
,
as web.KeyframeEffect
, or null.
`var effect = Animation.effect;
Animation.effect = AnimationEffectReadOnly`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/effect
Property. The Animation.effect property of the Web Animations API gets sets the target effect of an animation. The target effect may either an effect object of a type based on `web.AnimationEffectReadOnly`, as `web.KeyframeEffect`, or null. `var effect = Animation.effect; Animation.effect = AnimationEffectReadOnly` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/effect`
(set-finished! this val)
Property.
The Animation.finished read-only property of the Web Animations
returns a web.Promise
which resolves once the animation has
playing.
var animationsPromise = Animation.finished;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/finished
Property. The Animation.finished read-only property of the Web Animations returns a `web.Promise` which resolves once the animation has playing. `var animationsPromise = Animation.finished;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/finished`
(set-id! this val)
Property.
The Animation.id property of the Web Animations API returns or a string used to identify the animation.
`var animationsId = Animation.id;
Animation.id = newIdString;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/id
Property. The Animation.id property of the Web Animations API returns or a string used to identify the animation. `var animationsId = Animation.id; Animation.id = newIdString;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/id`
(set-oncancel! this val)
Property.
The oncancel property of the Web Animations API's web.Animation
is the event handler for the cancel event.
`var cancelHandler = Animation.oncancel;
Animation.oncancel = cancelHandler;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/oncancel
Property. The oncancel property of the Web Animations API's `web.Animation` is the event handler for the cancel event. `var cancelHandler = Animation.oncancel; Animation.oncancel = cancelHandler;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/oncancel`
(set-onfinish! this val)
Property.
The web.Animation
interface's onfinish property (from the Web
API) is the event handler for the finish event. This event is
when the animation finishes playing.
`var finishHandler = Animation.onfinish;
Animation.onfinish = finishHandler;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/onfinish
Property. The `web.Animation` interface's onfinish property (from the Web API) is the event handler for the finish event. This event is when the animation finishes playing. `var finishHandler = Animation.onfinish; Animation.onfinish = finishHandler;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/onfinish`
(set-pending! this val)
Property.
The read-only Animation.pending property of the Web Animations indicates whether the animation is currently waiting for an asynchronous such as initiating playback or pausing a running animation.
var pending = Animation.pending;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/pending
Property. The read-only Animation.pending property of the Web Animations indicates whether the animation is currently waiting for an asynchronous such as initiating playback or pausing a running animation. `var pending = Animation.pending;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/pending`
(set-play-state! this val)
Property.
The Animation.playState property of the Web Animations API returns sets an enumerated value describing the playback state of an
`var currentPlayState = Animation.playState;
Animation.playState = newState;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/playState
Property. The Animation.playState property of the Web Animations API returns sets an enumerated value describing the playback state of an `var currentPlayState = Animation.playState; Animation.playState = newState;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/playState`
(set-playback-rate! this val)
Property.
The Animation.playbackRate property of the Web Animations API or sets the playback rate of the animation.
`var currentPlaybackRate = Animation.playbackRate;
Animation.playbackRate = newRate;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/playbackRate
Property. The Animation.playbackRate property of the Web Animations API or sets the playback rate of the animation. `var currentPlaybackRate = Animation.playbackRate; Animation.playbackRate = newRate;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/playbackRate`
(set-ready! this val)
Property.
The read-only Animation.ready property of the Web Animations
returns a web.Promise
which resolves when the animation is
to play. A new promise is created every time the animation enters
"pending" play state as well as when the animation is canceled,
in both of those scenarios, the animation is ready to be started
var readyPromise = Animation.ready;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/ready
Property. The read-only Animation.ready property of the Web Animations returns a `web.Promise` which resolves when the animation is to play. A new promise is created every time the animation enters \"pending\" play state as well as when the animation is canceled, in both of those scenarios, the animation is ready to be started `var readyPromise = Animation.ready;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/ready`
(set-start-time! this val)
Property.
The Animation.startTime property of the web.Animation
interface
a double-precision floating-point value which indicates the scheduled
when an animation's playback should begin.
`var animationStartedWhen = Animation.startTime;
Animation.startTime = newStartTime;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/startTime
Property. The Animation.startTime property of the `web.Animation` interface a double-precision floating-point value which indicates the scheduled when an animation's playback should begin. `var animationStartedWhen = Animation.startTime; Animation.startTime = newStartTime;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/startTime`
(set-timeline! this val)
Property.
The Animation.timeline property of the web.Animation
interface
or sets the web.timeline
associated with this animation. A
is a source of time values for synchronization purposes, and
an web.AnimationTimeline
-based object. By default, the animation's
and the web.Document
's timeline are the same.
`var animationsTimeline = Animation.timeline;
Animation.timeline = newTimeline;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/timeline
Property. The Animation.timeline property of the `web.Animation` interface or sets the `web.timeline` associated with this animation. A is a source of time values for synchronization purposes, and an `web.AnimationTimeline`-based object. By default, the animation's and the `web.Document`'s timeline are the same. `var animationsTimeline = Animation.timeline; Animation.timeline = newTimeline;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/timeline`
(start-time this)
Property.
The Animation.startTime property of the web.Animation
interface
a double-precision floating-point value which indicates the scheduled
when an animation's playback should begin.
`var animationStartedWhen = Animation.startTime;
Animation.startTime = newStartTime;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/startTime
Property. The Animation.startTime property of the `web.Animation` interface a double-precision floating-point value which indicates the scheduled when an animation's playback should begin. `var animationStartedWhen = Animation.startTime; Animation.startTime = newStartTime;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/startTime`
(timeline this)
Property.
The Animation.timeline property of the web.Animation
interface
or sets the web.timeline
associated with this animation. A
is a source of time values for synchronization purposes, and
an web.AnimationTimeline
-based object. By default, the animation's
and the web.Document
's timeline are the same.
`var animationsTimeline = Animation.timeline;
Animation.timeline = newTimeline;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/timeline
Property. The Animation.timeline property of the `web.Animation` interface or sets the `web.timeline` associated with this animation. A is a source of time values for synchronization purposes, and an `web.AnimationTimeline`-based object. By default, the animation's and the `web.Document`'s timeline are the same. `var animationsTimeline = Animation.timeline; Animation.timeline = newTimeline;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/timeline`
(update-playback-rate this & args)
Method.
The updatePlaybackRate() method of the Web Animations API's web.Animation
sets the speed of an animation after first synchronizing its
position.
Animation.updatePlaybackRate(2);
See also: https://developer.mozilla.org/en-US/docs/Web/API/Animation/updatePlaybackRate
Method. The updatePlaybackRate() method of the Web Animations API's `web.Animation` sets the speed of an animation after first synchronizing its position. `Animation.updatePlaybackRate(2);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Animation/updatePlaybackRate`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close