TransitionEvent

open class TransitionEvent(val type: EventType<TransitionEvent>, init: TransitionEventInit = definedExternally) : Event(source)

The TransitionEvent interface represents events providing information related to transitions.

MDN Reference

Constructors

Link copied to clipboard
constructor(type: EventType<TransitionEvent>, init: TransitionEventInit = definedExternally)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
external val bubbles: Boolean
Link copied to clipboard
external val cancelable: Boolean
Link copied to clipboard
external val composed: Boolean
Link copied to clipboard
external val currentTarget: EventTarget?
Link copied to clipboard
Link copied to clipboard
external val elapsedTime: Double

The TransitionEvent.elapsedTime read-only property is a float giving the amount of time the animation has been running, in seconds, when this event fired. This value is not affected by the transition-delay property.

Link copied to clipboard
external val eventPhase: EventPhase
Link copied to clipboard
external val isTrusted: Boolean
Link copied to clipboard
external val propertyName: String

The propertyName read-only property of TransitionEvent objects is a string containing the name of the CSS property associated with the transition.

Link copied to clipboard
external val pseudoElement: String

The TransitionEvent.pseudoElement read-only property is a string, starting with '::', containing the name of the pseudo-element the animation runs on. If the transition doesn't run on a pseudo-element but on the element, an empty string: "".

Link copied to clipboard
external val target: EventTarget?
Link copied to clipboard
Link copied to clipboard
open external override val type: EventType<TransitionEvent>

Functions

Link copied to clipboard
Link copied to clipboard
external fun preventDefault()
Link copied to clipboard
Link copied to clipboard
external fun stopPropagation()