Skip to main content

Interface: TransitionDescriptor<T = unknown>

Fluent builder descriptor returned by to(value) for scheduling transitions.

Extended by​

Type Parameters​

Type ParameterDefault type
Tunknown

Properties​

PropertyType
__isTransitiontrue
curveEaseCurve
delayMsnumber
durationMsnumber
targetT
triggerMilestone?AnimationMilestone
triggerProperty?string
triggerTarget?string | ReactiveElementBase

Methods​

after()​

after(elementOrId: string | ReactiveElementBase, property?: string): this

Chains this transition to start after another element completes its animation (alias for .when(element, "end")).

Parameters​

ParameterTypeDescription
elementOrIdstring | ReactiveElementBaseTarget element or element ID to wait for.
property?stringOptional specific property on the target element to wait for.

Returns​

this


delay()​

delay(seconds: number): this

Adds a delay in seconds before animation begins.

Parameters​

ParameterType
secondsnumber

Returns​

this


duration()​

duration(seconds: number): this

Sets animation duration in seconds.

Parameters​

ParameterType
secondsnumber

Returns​

this


ease()​

ease(curve: BuiltinEase | EaseCurve): this

Sets the easing curve (e.g. "quartOut", "cubicInOut", "smooth").

Parameters​

ParameterType
curveBuiltinEase | EaseCurve

Returns​

this


when()​

when(elementOrId: string | ReactiveElementBase, milestone?: AnimationMilestone, property?: string): this

Synchronizes this transition to start when another element reaches an animation milestone.

Parameters​

ParameterTypeDescription
elementOrIdstring | ReactiveElementBaseTarget element or element ID to listen to.
milestone?AnimationMilestoneProgress milestone: "start", "halfway", "end" (default), or a fraction (0..1).
property?stringOptional specific property on the target element to track.

Returns​

this