import Ripples from 'beloader-animations/src/animations/Ripples.js'
Ripples
Extends:
Ripples is a fully customizable effect that generates... ripples. It can be used as highlighter for click or items. It can also be used as loader whith loop active.
Constructor Summary
Public Constructor | ||
public |
constructor(options: Object) Creates an instance of Ripples |
version 1.0.0 since 1.0.0 |
Member Summary
Public Members | ||
public |
Active ripple index |
since 1.0.0 |
public |
Timeline object |
|
public get |
block: HTMLElement HTML block for container |
Private Members | ||
private |
_block: * |
Method Summary
Public Methods | ||
public |
start(): this Launch the animation |
Private Methods | ||
private |
Generates a ripple animation given the options |
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 Ripples
Override:
AbstractAnimation#constructorParams:
Name | Type | Attribute | Description |
options | Object |
|
Options for animation |
options.loop | boolean |
|
Wether if animation should loop |
options.duration | number |
|
Duration of one ripple animation (ms) |
options.offset | number |
|
Offset between two ripples animations (ms) |
options.width | string |
|
Width for the container (any allowed css value) |
options.height | string |
|
Height for the container (any allowed css value) |
options.scale | number |
|
Scale factor |
options.easing | string |
|
Easing formula (any allowed easing by animejs) |
options.ripples | Object |
|
Ripples Options |
options.ripples.count | number |
|
Number of ripples |
options.ripples.width | string |
|
Initial innerWidth of a ripple (any allowed css value) |
options.ripples.height | string |
|
Initial innerWidth of a ripple (any allowed css value) |
options.ripples.borderColor | string |
|
Border color of ripples (any allowed css value) |
options.ripples.borderStyle | string |
|
Border style of ripples (any allowed css value) |
options.ripples.borderWidth | string |
|
Initial border width (any allowed css value) |
options.ripples.background | string |
|
Background property of a ripple (any allowed css value) |
options.ripples.opacity | Object |
|
Specific options for opacity animation |
options.ripples.opacity.start | number |
|
Initial opacity value |
options.ripples.opacity.end | number |
|
Final opacity value |
options.ripples.opacity.duration | number |
|
Opacity animation duration |
options.ripples.opacity.easing | number |
|
Opacity animation easing |