Skip to main content

Class: NoneTransition

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

Extends​

Constructors​

new NoneTransition()​

new NoneTransition(): NoneTransition

Returns​

NoneTransition

Overrides​

Transition.constructor

Defined in​

m2c2kit/packages/core/src/Transition.ts:56

Properties​

duration​

duration: number

Overrides​

Transition.duration

Defined in​

m2c2kit/packages/core/src/Transition.ts:55


easing​

easing: EasingFunction

Overrides​

Transition.easing

Defined in​

m2c2kit/packages/core/src/Transition.ts:54


type​

type: "None" = TransitionType.None

Overrides​

Transition.type

Defined in​

m2c2kit/packages/core/src/Transition.ts:53

Methods​

none()​

static none(): NoneTransition

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

Returns​

NoneTransition

Inherited from​

Transition.none

Defined in​

m2c2kit/packages/core/src/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

Inherited from​

Transition.slide

Defined in​

m2c2kit/packages/core/src/Transition.ts:29