Methods
# generate(parameters) → {Object}
Generate animation pattern
Parameters:
Name | Type | Description |
---|---|---|
parameters |
Object
|
Generation parameters |
Animation pattern
Object
# generateElements(count, style) → {Array}
Generate animation elements
Parameters:
Name | Type | Description |
---|---|---|
count |
number
|
Element count |
style |
string
|
Animation style |
Animation elements
Array
# generateKeyframes(complexity, duration) → {Array}
Generate keyframes for animation
Parameters:
Name | Type | Description |
---|---|---|
complexity |
string
|
Animation complexity |
duration |
number
|
Animation duration |
Keyframes
Array
# generateProperties(style) → {Object}
Generate element properties
Parameters:
Name | Type | Description |
---|---|---|
style |
string
|
Animation style |
Properties
Object
# generateTiming(complexity) → {string}
Generate timing function
Parameters:
Name | Type | Description |
---|---|---|
complexity |
string
|
Animation complexity |
Timing function
string
# generateVelocity(style) → {Object}
Generate velocity based on style
Parameters:
Name | Type | Description |
---|---|---|
style |
string
|
Animation style |
Velocity
Object
# interpolateColors(progress) → {Object}
Interpolate colors for animation
Parameters:
Name | Type | Description |
---|---|---|
progress |
number
|
Animation progress (0-1) |
Color values
Object