E

WebGLAnimationDirection

Defines the direction of the animation.

Members

No filters for this type

Constants

The animation plays forwards and backwards alternating.
In case the animation loops, the animation plays forwards in one iteration and backwards in the next. That way, the animation loops smoothly.
static
The animation plays backwards and forwards alternating.
In case the animation loops, the animation plays backwards in one iteration and forwards in the next. That way, the animation loops smoothly.
static
The animation plays forwards.
In case the animation loops, the animation is reset to the beginning state in each loop.
static
The animation plays backwards.
In case the animation loops, the animation is reset to the end state in each loop.
static

Static Methods

Converts the given argument to an enum constant of this enum type.
Most notably, this method can convert an enum constant's name into the enum constant itself.
static

Parameters

value: WebGLAnimationDirection
The value to convert to an enum constant.

Return Value

WebGLAnimationDirection
The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
static

Parameters

value: WebGLAnimationDirection
The numeric value of an enum constant.

Return Value

string
The name of the enum constant.

Throws

Exception ({ name: 'Error' })
If this type is a flags enums, and the provided value doesn't correspond to a single enum constant, or if this enum type contains no constant of the given numeric value.