See below to learn more about properties, slots, events, style variables, CSS parts, and methods.
Determines how values are combined between this animation and other, separate animations that do not specify their own specific composite operation.
The number of milliseconds to delay the start of the animation.
Whether the animation runs forwards (normal), backwards (reverse), switches direction after each iteration (alternate), or runs backwards and switches direction after each iteration (alternate-reverse).
The number of milliseconds each iteration of the animation takes to complete. Keep in mind that your animation will not run if this value is 0.
The rate of the animation's change over time. Accepts the pre-defined values "linear", "ease", "ease-in", "ease-out", and "ease-in-out", or a custom "cubic-bezier" value like "cubic-bezier(0.42, 0, 0.58, 1)".
The number of milliseconds to delay after the end of an animation. This is primarily of use when sequencing animations based on the end time of another animation.
Dictates whether the animation's effects should be reflected by the element(s) prior to playing ("backwards"), retained after the animation has completed playing ("forwards"), or both.
The Animation object instance.
Determines how values build from iteration to iteration in this animation. Can be set to accumulate or replace.
The number of times the animation should repeat. And can also take a value of Infinity to make it repeat for as long as the element exists.
Describes at what point in the iteration the animation should start. 0.5 would indicate starting halfway through the first iteration for example, and with this value set, an animation with 2 iterations would end halfway through a third iteration.
A keyframes object or null.
Specifies what kind of animation will play. The list of available animations is here.
Sets the animation's playback rate.
Starts the animation.
Overrides default configuration for specific breakpoints. See Overrides for details.
The default slot.
Fires when the Animation.cancel() method is called or when the animation enters the "idle" play state from another state.
Fires when the animation finishes playing.
Fires when the animation is removed (i.e., put into an active replace state).
There are no CSS Variables.
There are no CSS Parts.
Clears all keyframeEffects caused by this animation and aborts its playback.
Commits the end styling state of an animation to the element being animated, even after that animation has been removed. It will cause the end styling state to be written to the element being animated, in the form of properties inside a style attribute.
Seeks either end of an animation, depending on whether the animation is playing or reversing.
Suspends playing of an animation.
Explicitly persists an animation, when it would otherwise be removed due to the browser's Automatically removing filling animations behavior.
Starts or resumes playing of an animation, or begins the animation again if it previously finished.
Reverses playback direction, stopping at the start of the animation. If the animation is finished or unplayed, it will play from end to beginning.
Sets the speed of an animation after first synchronizing its playback position.