Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Transitions

The Transitions class contains static methods that define easing functions. Those functions are used by the Tween class to execute animations.

Here is a visual representation of the available transitions:

You can define your own transitions through the "registerTransition" function. A transition must have the following signature, where ratio is in the range 0-1:

myTransition(ratio:number):number

Hierarchy

  • Transitions

Index

Properties

Static EASE_IN

EASE_IN: string

Static EASE_IN_BACK

EASE_IN_BACK: string

Static EASE_IN_BOUNCE

EASE_IN_BOUNCE: string

Static EASE_IN_ELASTIC

EASE_IN_ELASTIC: string

Static EASE_IN_OUT

EASE_IN_OUT: string

Static EASE_IN_OUT_BACK

EASE_IN_OUT_BACK: string

Static EASE_IN_OUT_BOUNCE

EASE_IN_OUT_BOUNCE: string

Static EASE_IN_OUT_ELASTIC

EASE_IN_OUT_ELASTIC: string

Static EASE_OUT

EASE_OUT: string

Static EASE_OUT_BACK

EASE_OUT_BACK: string

Static EASE_OUT_BOUNCE

EASE_OUT_BOUNCE: string

Static EASE_OUT_ELASTIC

EASE_OUT_ELASTIC: string

Static EASE_OUT_IN

EASE_OUT_IN: string

Static EASE_OUT_IN_BACK

EASE_OUT_IN_BACK: string

Static EASE_OUT_IN_BOUNCE

EASE_OUT_IN_BOUNCE: string

Static EASE_OUT_IN_ELASTIC

EASE_OUT_IN_ELASTIC: string

Static LINEAR

LINEAR: string

Methods

Static getTransition

  • getTransition(name: string): function
  • Returns the transition that was registered under a certain name.

    Parameters

    • name: string

    Returns function

      • (number: any): number
      • Parameters

        • number: any

        Returns number

Static register

  • register(name: string, func: function): void
  • Registers a new transition under a certain name.

    Parameters

    • name: string
    • func: function
        • (number: any): number
        • Parameters

          • number: any

          Returns number

    Returns void

Generated using TypeDoc