NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
import {RotateAnimation} from 'ngl/src/animation/animation.js'
public class | source

RotateAnimation

Extends:

Animation → RotateAnimation

Rotate animation. Rotate from one orientation to another.

Member Summary

Public Members
public
public
Private Members
private

Method Summary

Private Methods
private

_init()

private

_tick()

Inherited Summary

From class Animation
public get

True when animation has finished

public get

True when animation is paused

public
public
public
public
public
public
public
public
private
private
private
public

Pause animation

public

resume(releaseHold: Boolean): undefined

Resume animation

public

then(callback: Function): Promise

Promise-like interface

public

tick()

public

Toggle animation

private abstract

init animation

private abstract

called on every tick

Public Members

public rotateFrom source

public rotateTo source

Private Members

private _currentRotation source

Private Methods

private _init() source

init animation

Override:

Animation#_init

private _tick() source

called on every tick

Override:

Animation#_tick