openharmony 鸿蒙 ui-js-building-ui-event

Defining Gesture Events A gesture represents a semantic action (for example, touch, click, or long press) recognized from one or more input events. A gesture lifecycle may consist of multiple sequenti
阅读全文

openharmony 鸿蒙 ui-js-building-ui-component

Component Overview A component is the core of a page. Each component is an independent visual and interactive functional unit through simple encapsulation of data and methods. They are independent of
阅读全文

openharmony 鸿蒙 ui-js-building-ui-animation

Developing Animations Animations are classified into static animation and continuous animation. Static Animation The transform attributes are the core of the static animation. A static animation can t
阅读全文

openharmony 鸿蒙 ui-js-animate-transform

Animation with the transform Attribute Set the transform attribute for component rotation, scaling, translation, and skewing. Designing Static Animation Create a square and rotate it by 90 degrees to
阅读全文

openharmony 鸿蒙 ui-js-animate-svg

Animation for SVG Components You can use child components in the <svg> component to animate attributes over time. Attribute Style Animation In the animate child component of the <svg> comp
阅读全文

openharmony 鸿蒙 ui-js-animate-frame

Animation Frame Requesting an Animation Frame Use the requestAnimationFrame method to request frames on a per-frame basis. This method accepts a callback function as its argument. When runframe calls
阅读全文