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

TimeoutAnimation

Extends:

Animation → TimeoutAnimation

Timeout animation. Call callback after duration.

Member Summary

Public Members
public

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 callback source

Private Methods

private _init() source

init animation

Override:

Animation#_init

private _tick() source

called on every tick

Override:

Animation#_tick