Class: SlideTransition
The Transition class has static methods for creating animations that run as one scene transitions to another.
Extends
Constructors
new SlideTransition()
new SlideTransition(
direction,duration,easing):SlideTransition
Parameters
• direction: TransitionDirection
• duration: number
• easing: EasingFunction
Returns
Overrides
Defined in
m2c2kit/packages/core/src/Transition.ts:68
Properties
direction
direction:
TransitionDirection
Defined in
m2c2kit/packages/core/src/Transition.ts:67
duration
duration:
number
Overrides
Defined in
m2c2kit/packages/core/src/Transition.ts:66
easing
easing:
EasingFunction
Overrides
Defined in
m2c2kit/packages/core/src/Transition.ts:65
type
type:
"Slide"=TransitionType.Slide
Overrides
Defined in
m2c2kit/packages/core/src/Transition.ts:64
Methods
none()
staticnone():NoneTransition
Creates a scene transition with no animation or duration. The next scene is immediately drawn.
Returns
Inherited from
Defined in
m2c2kit/packages/core/src/Transition.ts:47
slide()
staticslide(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
Returns
Inherited from
Defined in
m2c2kit/packages/core/src/Transition.ts:29