Difference between revisions of "LGUI2:AnimationType:slide"
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
! destination | ! destination | ||
| An Array with 2 numbers specifying the X,Y coordinate to move to, e.g. [0,0] | | An Array with 2 numbers specifying the X,Y coordinate to move to, e.g. [0,0] | ||
− | |||
− | |||
− | |||
|} | |} | ||
Latest revision as of 03:03, 19 November 2018
The slide Animation Type moves an element over time to a specified point
Animation properties
- A slide Animation uses these properties in addition to those defined by Animation
Animation properties for "slide" | |
---|---|
destination | An Array with 2 numbers specifying the X,Y coordinate to move to, e.g. [0,0] |
Examples
- Slide to 0,0 and then to 1500,0
{ "type": "chain", "name": "backAndForth", "animations": [ { "type": "slide", "name": "back", "destination": [ 0, 0 ], "duration": 1000 }, { "type": "slide", "name": "forth", "destination": [ 1500, 0 ], "duration": 1000 } ] }
LavishGUI 2 Animation Types