The discussion focuses on animation development in the Cangjie language, covering both display and attribute animations. Display animations, favored by You LAN Jun, use the `animateTo` method for implementation. A loading image example demonstrates setting the angle attribute for rotation, noting the requirement for both "z" and "Angle" settings. Animation parameters such as duration, curve, delay, iterations, and play mode are explained. Attribute animations offer a different writing style while achieving similar effects. The `animationStart` and `animationEnd` methods are used to define attribute animation blocks. An example illustrates creating a loading animation using attribute animation with defined parameters. A button triggers the animation by setting the angle to 360 degrees. The core difference lies in the implementation approach, display animation uses `animateTo` while attribute animation uses `animationStart` and `animationEnd`.
dev.to
dev.to
Create attached notes ...