Alibaba Group Holding Limited
Method and apparatus for implementing animation in client application and animation script framework
Last updated:
Abstract:
A method for implementing animation in a client application, includes receiving an animation code written in a script language from a server, the animation code including a logic script and an animation description script; parsing the logic script in the animation code, and obtaining a view identifier, an animation identifier, and a pre-obtained correspondence relationship between the view identifier and the animation identifier included therein; determining a view component to be driven and corresponding to the view identifier in a client application based on a correspondence relationship between view identifiers and view components, and reading an animation description to be implemented and corresponding to the animation identifier in the animation description script according to the animation identifier corresponding to the view identifier; and determining that loading of the animation description to be implemented in the view component to be driven according to a condition provided by the logic script.
Utility
20 Dec 2018
29 Sep 2020