Properties:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DEFAULT_LAYER_OPTIONS |
Object | Default options to use when executing Properties
|
Extends
Methods
(static) Mixin(BaseClass) → {Class}
Creates a class that implements ManagedAnimationLayerInterface
and extends a specified base class.
Parameters:
Name | Type | Description |
---|---|---|
BaseClass |
Class | The class to extend. |
Returns:
A class that extends BaseClass
and implements ManagedAnimationLayerInterface.
- Type
- Class
disable(secondsopt, easingFnopt)
Set all tracked layers' weights to 0.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
seconds |
number |
<optional> |
Number of seconds it will take to reach the weight |
easingFn |
function |
<optional> |
Easing function to use when setting weight |
discard()
- Inherited From:
enable(secondsopt, easingFnopt)
Set all tracked layers' weights to 1.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
seconds |
number |
<optional> |
Number of seconds it will take to reach the weight |
easingFn |
function |
<optional> |
Easing function to use when setting weight |
registerAnimation(layerName, animationName, optionsopt)
Start tracking keeping track of whether an animation with the given name is
present on the host.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
layerName |
string | Name of the layer that will own the animation. |
|
animationName |
string | Name of the animation to keep track of. |
|
options |
Object |
<optional> |
Options for the animation. |
registerLayer(name, optionsopt)
Start tracking keeping track of whether a layer with the given name is present
on the host.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name |
string | Name of the layer to keep track of. |
|||||||||||||||||
options |
Object |
<optional> |
Options for the layer. Properties
|
setLayerWeights(nameFilteropt, weight, secondsopt, easingFnopt)
Set layer weights on tracked layers.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
nameFilter |
function |
<optional> |
Predicate function to test each tracked layer |
weight |
number | Weight value to set on layers. |
|
seconds |
number |
<optional> |
Number of seconds it will take to reach the weight |
easingFn |
function |
<optional> |
Easing function to use when setting weight |