Methods
General methods
Method: create({actions: array, container: string, mode: string, player: string | object, ...options})
Purpose: Creates and returns the instance of the configured LottieInteractivity object.
Parameters:
Name | Type | Description |
---|---|---|
|
| Contains an array of objects defining the interactivity configuration. |
|
| Used for scrolling interactions relative to the defined container. |
|
| Defines the interactivity mode either |
|
| Defines the Lottie to attach interactivity to. Can either be the id of a |
Return Type: LottieInteractivity
----------------------------------------------------------
Method: redefineOptions({actions: array, container: string, mode: string, player: string | object, ...options})
Purpose: Reconfigures the interactivity applied to a lottie.
Parameters:
Name | Type | Description |
---|---|---|
|
| Contains an array of objects defining the interactivity configuration. |
|
| Used for scrolling interactions relative to the defined container. |
|
| Defines the interactivity mode either |
|
| Defines the Lottie to attach interactivity to. Can either be the id of a |
Return Type: void
----------------------------------------------------------
Method: stop()
Purpose: Stop interactivity on the animation.
Return Type: void
----------------------------------------------------------
Chaining mode methods
Method: jumpToInteraction(index: number)
Purpose: Go to the action defined at the passed index.
Parameters:
Name | Type | Description |
---|---|---|
|
|
Return Type: void
----------------------------------------------------------
Method: nextInteraction(incrementIndex: boolean = true)
Purpose: Go to the next interaction manually.
Parameters:
Name | Type | Description |
---|---|---|
|
| Increment the index containing the current position in the action array. |
Return Type: void
Last updated