Lottie Implementation for Mendix.
Lottie is an easy way to add beautiful animations to your app. It uses JSON files exported from After Effects.
Read more about Lottie
here and see the possibilities here
In this option you dont have to store the Animation JSON file locally or copy it over, you can simply provide a publicly available URL.
Here you will have to setup a entity in the domain model that stores the JSON in a String Attribute.
You can simply open the JSON file in a Text Editor you receive from your designer and copy and save it.
HERE is an example of a JSON string copied
Type | Info | |
---|---|---|
Loop | boolean | Either loops the animation or not |
Width and Height | number | Set Animation Width and Height |
Start Animation | boolean | When this is selected the animation will only start once the value changes from False to True (Non persistable object) |
On Complete | action | When this is selected it will trigger the action once the animation is Done (WILL NOT TRIGGER ON LOOPING ANIMATIONS) |
Example of a Microflow triggering a Manual Start
Example of a OnComplete triggering a Page To Open (Also A Manual Start)
Random Locally Stored Animations
- Currently not able to loop segments and then stop the Animation
[specify contribute]