new myTransitions()
- Description:
- Create myTransitions object
- Source:
Methods
_shape(shape, collection, timing, period, lineTos, optimal)
- Description:
- Creates shape from array of numbers
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
shape |
Array | Array of collection indexes | |
collection |
ClCollection | Canvas Lab collection | |
timing |
string | function | Timing function | |
period |
number | Period of timer | |
lineTos |
boolean |
true
|
Draw lines connecting shapes |
optimal |
boolean |
false
|
Optimal line draws |
bloom(collection, timing, period, out)
- Description:
- Returns transitions for bloom animation
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
collection |
ClCollection | Canvas Lab collection | |
timing |
string | function | Timing function | |
period |
number | Period of timer | |
out |
boolean |
true
|
Whether to bloom out, or in |
hop(object, collection, timing, period)
- Description:
- Returns transitions for hop animation
- Source:
Parameters:
Name | Type | Description |
---|---|---|
object |
clObject | Canvas Lab object |
collection |
ClCollection | Canvas Lab collection |
timing |
string | function | Timing function |
period |
number | Period of timer |
shape(shape, collection, timing, period, lineTos, optimal)
- Description:
- Creates shape from array of numbers
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
shape |
Array | Array of collection indexes | |
collection |
ClCollection | Canvas Lab collection | |
timing |
string | function | Timing function | |
period |
number | Period of timer | |
lineTos |
boolean |
true
|
Draw lines connecting shapes |
optimal |
boolean |
false
|
Optimal line draws |
skip(object, collection, timing, period)
- Description:
- Returns transitions for skip animation
- Source:
Parameters:
Name | Type | Description |
---|---|---|
object |
clObject | Canvas Lab object |
collection |
ClCollection | Canvas Lab collection |
timing |
string | function | Timing function |
period |
number | Period of timer |
template(value)
- Description:
- Set template
- Source:
- See:
Parameters:
Name | Type | Description |
---|---|---|
value |
Template | Template object |
template() → {Template}
- Description:
- Get template
- Source:
- See:
Returns:
Template object
- Type
- Template
transitions() → {number}
- Description:
- Get transitions
- Source:
Returns:
Transitions of object
- Type
- number