import ThreeDotsBouncing from 'beloader-animations/src/animations/ThreeDotsBouncing.js'
ThreeDotsBouncing
Extends:
ThreeDotsBouncing provides a block of three dots bouncing from left to right and reverse.
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 |
animation: * |
|
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#constructorParams:
Name | Type | Attribute | Description |
options | Object | Options for the animation |
|
options.loop | boolean |
|
|
options.duration | number |
|
Duration of the animation |
options.offset | number |
|
Offset duration between each dots animation |
options.width | number |
|
Width of the container (any CSS compatible value) |
options.dots | Object |
|
Specific options for dots |
options.dots.width | number |
|
Width of a dot (in pixels) |
options.dots.height | number |
|
Height of a dot (in pixels) |
options.dots.color | string | Function |
|
color of a dot (any CSS compatible form) |
Public Members
public animation: * source
Animejs animation object or timeline
Override:
AbstractAnimation#animationpublic get block: HTMLElement version 1.0.0 since 1.0.0 source
Get the HTMLElement for the block