Skip to main content

Class: abstract Transition

The Transition class has static methods for creating animations that run as one scene transitions to another.

Extended by

Constructors

new Transition()

new Transition(): Transition

Returns

Transition

Properties

duration

abstract duration: number

Defined in

Transition.ts:21


easing

abstract easing: EasingFunction

Defined in

Transition.ts:20


type

abstract type: TransitionType

Defined in

Transition.ts:19

Methods

none()

static none(): NoneTransition

Creates a scene transition with no animation or duration. The next scene is immediately drawn.

Returns

NoneTransition

Defined in

Transition.ts:47


slide()

static slide(options): SlideTransition

Creates a scene transition in which the outgoing scene slides out and the incoming scene slides in, as if the incoming scene pushes it.

Parameters

options: SlideTransitionOptions

SlideTransitionOptions

Returns

SlideTransition

Defined in

Transition.ts:29