Recently, I plan to use as3 code and the tweenlite library to implement the animation effect in Microsoft PowerPoint. I can see that most of the effects are not hard to achieve, but there are more than 100 effects in total, with a huge workload, it is estimated that one or two results can be written every day for a long-running war. It is planned to be completed in installments in a spare time of about two months. The first phase of the plan to complete the most commonly used 50 results.
Results To be completed in the first phase
Currently, the interface class animation provides two methods: initialization () and play (). Microsoft animations are roughly divided into four types: entrance, emphasis, exit, and motionpaths, each has four packages. Then, each package has a base class with the same name as the package to implement the animation interface, and provides some common methods and call structures for the following sub-classes. At last, each specific effect is the subclass of these base classes. If necessary, you can rewrite the methods of the parent class to implement specific functions. You can input JSON parameters for configuration for each specific effect, which also draws on the practices of some recently used jquery plug-ins.
Although I also feel that this framework is too weak, not perfect, and redundant, it may not be fully considered in many places, but it should be improved and improved with the development.
Currently, 13 types of entrance animations are completed, and you are ready to stop for a code review, refactor the code, and delete useless duplicate code.