Skip to main content

Interface: PositionTransitionDescriptor<T extends Position = Position>

Position transition. Default route: straight.

Extends​

Type Parameters​

Type ParameterDefault type
T extends PositionPosition

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

Inherited from​

TransitionDescriptor.after


delay()​

delay(seconds: number): this

Adds a delay in seconds before animation begins.

Parameters​

ParameterType
secondsnumber

Returns​

this

Inherited from​

TransitionDescriptor.delay


duration()​

duration(seconds: number): this

Sets animation duration in seconds.

Parameters​

ParameterType
secondsnumber

Returns​

this

Inherited from​

TransitionDescriptor.duration


ease()​

ease(curve: BuiltinEase | EaseCurve): this

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

Parameters​

ParameterType
curveBuiltinEase | EaseCurve

Returns​

this

Inherited from​

TransitionDescriptor.ease


path()​

path(path: MotionPath): this

Travel along a motion path. Default: straight.

Parameters​

ParameterType
pathMotionPath

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

Inherited from​

TransitionDescriptor.when