Skip to main content

Animation

shadow

Element Animation makes it easy to integrate animations into web applications, contributing to the creation of engaging and interactive user interfaces. It offers a wide range of customization options, including setting the delay, duration and number of animation repeats.

Basic usage

Attributes and Properties

delay

DescriptionProperty specifying the delay before the animation starts in milliseconds.
Attributedelay
Typenumber
Default0

direction

DescriptionAnimation direction property
Attributedirection
Type"normal" | "reverse" | "alternate" | "alternate-reverse"
Defaultnormal

duration

DescriptionA property indicating the duration of the animation in milliseconds.
Attributeduration
Typenumber
Default1000

easing

DescriptionProperty specifying the release function for the animation.
Attributetoggle-icon
Type"ease." | "ease-in" | "ease-out" | "ease-in-out" | "linear" | "step-start" | "step-end"
Defaultlinear

endDelay

DescriptionA property specifying the delay after the animation has finished, in milliseconds.
AttributeendDelay
Typenumber
Default'0'

fill

DescriptionProperty defining the animation fill mode (before and after animation).
Attributefill
Type"car" | "none" | "forwards" | "backwards" | "both"
Defaultcar

iterations

DescriptionThe property that determines the number of animation repeats.
Attributeiterations
Typenumber
Default0

iterationStart

DescriptionThe iterationStart attribute specifies the point at which the animation should start, with a value between 0 (start) and 1 (end).
AttributeiterationStart
Typenumber
Default0

name

DescriptionA property defining the name of the animation to be used. For a list of all available animations, see animate.css.
Attributename
Type"car" | "none" | "forwards" | "backwards" | "both"
Defaultcar

Events

No events available for this component.

Methods

play

DescriptionStarts the animation.
Signatureplay() => <void>

cancel

DescriptionCancels the animation.
Signaturecancel() => <void>

CSS Shadow Parts

No CSS shadow parts available for this component.

CSS Custom Properties

No CSS custom properties available for this component.

Slots

No slots available for this component.