Reference Source Test
public class | version 1.0.0 | since 1.0.0 | source

ThreeDotsBouncing

Extends:

AbstractAnimation → ThreeDotsBouncing

ThreeDotsBouncing provides a block of three dots bouncing from left to right and reverse.

See:

Example:

 var dots = new ThreeDotsBouncing();

 document.body.appendChild(dots.block);
 dots.start();

Constructor Summary

Public Constructor
public

constructor(options: Object)

Creates an instance of ThreeDotsBouncing with given options

version 1.0.0 since 1.0.0

Member Summary

Public Members
public
public get

block: HTMLElement

Get the HTMLElement for the block

version 1.0.0 since 1.0.0
Private Members
private

_block: *

Method Summary

Public Methods
public

start(): this

Starts the animation

version 1.0.0 since 1.0.0

Inherited Summary

From class AbstractAnimation
public get

Always return false if not overriden in childs class

version 1.0.0 since 1.0.0
public

Animejs animation object or timeline

public

Auto-generated unique id for animation

since 1.0.0
public

Options for the animation

since 1.0.0
public

Check if required options have been provided

version 1.0.0 since 1.0.0

Public Constructors

public constructor(options: Object) version 1.0.0 since 1.0.0 source

Creates an instance of ThreeDotsBouncing with given options

Override:

AbstractAnimation#constructor

Params:

NameTypeAttributeDescription
options Object

Options for the animation

options.loop boolean
  • optional
  • default: true
options.duration number
  • optional
  • default: 3000

Duration of the animation

options.offset number
  • optional
  • default: 1000

Offset duration between each dots animation

options.width number
  • optional
  • default: 25%

Width of the container (any CSS compatible value)

options.dots Object
  • optional

Specific options for dots

options.dots.width number
  • optional
  • default: 30

Width of a dot (in pixels)

options.dots.height number
  • optional
  • default: 30

Height of a dot (in pixels)

options.dots.color string | Function
  • optional
  • default: '#fff'

color of a dot (any CSS compatible form)

Public Members

public animation: * source

Animejs animation object or timeline

Override:

AbstractAnimation#animation

public get block: HTMLElement version 1.0.0 since 1.0.0 source

Get the HTMLElement for the block

Override:

AbstractAnimation#block

Private Members

private _block: * source

Public Methods

public start(): this version 1.0.0 since 1.0.0 source

Starts the animation

Return:

this

Chainable