mirror of
https://gitee.com/openharmony/applications_app_samples
synced 2024-11-23 16:40:08 +00:00
bdbf8f67a8
Signed-off-by: wangli325 <wangli325@huawei.com> |
||
---|---|---|
.. | ||
entry | ||
screenshots/device | ||
build.gradle | ||
README_zh.md | ||
README.md | ||
settings.gradle |
JS Animation and Custom Font Styles
Introduction
This sample shows how to use animation styles, gradient styles, transition styles, and custom font styles in JavaScript.
-
Animation styles: translate, rotate, scale, and combined
-
Gradient styles: linear-gradient and repeating-linear-gradient
-
Transition styles: shared-element, custom, and card
-
Custom font styles: implemented by referencing the .otf font file
The same rule applies to the TTF font.
Usage
In this sample, there are four buttons on the home screen of your app.
You can touch any of these buttons to access the corresponding style page and view how a style looks. For example, you can touch the Move button on the animation style page to see how a component moves with the defined settings.
Constraints
This sample can only be run on mini-system devices.