Animation Script Framework for Dynamic Client Updates
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing methods for implementing animation in client applications are inflexible, requiring hard-coding and lengthy development cycles, making it difficult to adjust or add animation effects post-release, which limits user experience and operational efficiency.
Innovation Solution
A method and framework that allow client applications to receive animation codes written in a script language from a server, parsing logic and animation description scripts to dynamically load animation effects into view components, eliminating the need for recompilation and re-release, and enabling real-time updates.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If animation effects are implemented by hard coding in the client application, then the animation effects can be stable and reliable, but the animation effects cannot be adjusted or changed after release and require lengthy development cycles
Solution Approach 1:
The patent segments the animation system into two independent parts: animation configuration data (stored on server) and animation execution code (in client). This allows the configuration part to be modified independently without affecting the execution engine, enabling rapid adjustment of animation effects without full recompilation and re-release cycles.
Solution Approach 2:
The patent introduces an animation configuration file as an intermediary layer between the server and client. This configuration file contains animation parameters and can be updated on the server side, then downloaded by the client at runtime, serving as a mediator that enables flexible animation adjustment without direct modification of client source code.
2Reliability
If animation effects are adjusted or added through development, compilation, packaging, testing and release processes, then the animation effects can be thoroughly tested and reliable, but the entire process is cumbersome and time-consuming
Solution Approach 1:
The patent implements preliminary action by pre-defining animation templates and configurations on the server side before deployment. These pre-configured animation effects can be selectively activated or modified through configuration files without requiring full development cycles, enabling rapid iteration while maintaining reliability through pre-testing of animation templates.
Solution Approach 2:
The patent makes the animation system dynamic by allowing animation configurations to be changed at runtime through server-side updates. The client application can download and apply new animation configurations without recompilation, enabling the system to adapt to changing requirements while maintaining the stability of the core execution engine.
3Adaptability or versatility
If new client versions are released to cover new animation effects, then all users can experience new features, but it takes a period of time for users to update and animation coverage is incomplete
Solution Approach 1:
The patent adds a new dimension to animation delivery by separating configuration data from executable code. Animation configurations can be delivered through configuration files or remote servers independently of client version updates, allowing animation effects to be updated in a different dimension (configuration space) rather than requiring version updates in the traditional code deployment dimension.
4Ease of operation
If animation effects are hard coded in advance, then the client application structure remains simple and maintainable, but temporary adjustment and changes cannot be made after release
Solution Approach 1:
The patent extracts animation configuration data from the hard-coded client application structure and places it in external configuration files or server-side storage. This extraction allows animation parameters to be adjusted independently without modifying the core client codebase, maintaining simplicity in the execution engine while enabling flexibility in animation configuration.
Data Source
AI summary
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.


