Package-level declarations

Types

Link copied to clipboard
open class Animation(var effect: AnimationEffect? = definedExternally, var timeline: AnimationTimeline? = definedExternally) : EventTarget

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

Link copied to clipboard
open class AnimationEffect

The AnimationEffect interface of the Web Animations API is an interface representing animation effects.

Link copied to clipboard
open class AnimationEvent(val type: EventType<AnimationEvent>, init: AnimationEventInit = definedExternally) : Event

The AnimationEvent interface represents events providing information related to animations.

Link copied to clipboard
Link copied to clipboard
open class AnimationPlaybackEvent(val type: EventType<AnimationPlaybackEvent>, init: AnimationPlaybackEventInit = definedExternally) : Event

The AnimationPlaybackEvent interface of the Web Animations API represents animation events.

Link copied to clipboard
Link copied to clipboard
sealed interface AnimationPlayState
Link copied to clipboard
sealed interface AnimationReplaceState
Link copied to clipboard

The AnimationTimeline interface of the Web Animations API represents the timeline of an animation.

Link copied to clipboard
sealed interface CompositeOperation
Link copied to clipboard
sealed interface CompositeOperationOrAuto
Link copied to clipboard
Link copied to clipboard
sealed interface ComputedKeyframe
Link copied to clipboard
typealias CSSNumberish = Double
Link copied to clipboard
open class DocumentTimeline(options: DocumentTimelineOptions = definedExternally) : AnimationTimeline

The DocumentTimeline interface of the Web Animations API represents animation timelines, including the default document timeline (accessed via Document.timeline).

Link copied to clipboard
Link copied to clipboard
interface EffectTiming
Link copied to clipboard
sealed interface FillMode
Link copied to clipboard
Link copied to clipboard
sealed interface FrameRequestId
Link copied to clipboard
Link copied to clipboard
sealed interface Keyframe
Link copied to clipboard
open class KeyframeEffect(var target: Element?, keyframes: ReadonlyArray<Keyframe>?, options: Double = definedExternally) : AnimationEffect

The KeyframeEffect interface of the Web Animations API lets us create sets of animatable properties and values, called keyframes. These can then be played using the Animation.Animation constructor.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed interface PlaybackDirection
Link copied to clipboard
sealed interface PropertyIndexedKeyframes

Functions

Link copied to clipboard
suspend fun awaitAnimationFrame()
Link copied to clipboard