文件最后提交记录最后更新时间
!1055 适配横屏修改 * adapter WGR 3 年前
!913 修改README * update readme 3 年前
add english readme Signed-off-by: wangli325 <wangli325@huawei.com> 4 年前
!966 README整改 * update README_zh.md 3 年前
!614 AtomicLayout、BuildCommonView、DdefiningPageLayoutAndConnection、Process、JsAnimationStyle、JsCanvas、JsDialog、JsGrid、JsDevice、JsUICustomComponent工程API7至API8工程适配 * AtomicLayout、BuildCommonView、DdefiningPageLayoutAndConnection、Process、… 4 年前
!614 AtomicLayout、BuildCommonView、DdefiningPageLayoutAndConnection、Process、JsAnimationStyle、JsCanvas、JsDialog、JsGrid、JsDevice、JsUICustomComponent工程API7至API8工程适配 * AtomicLayout、BuildCommonView、DdefiningPageLayoutAndConnection、Process、… 4 年前
!822 901工程适配 * 修改.mainAbility为.MainAbility * 901工程适配 3 年前
README.md

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.

  1. Animation styles: translate, rotate, scale, and combined

  2. Gradient styles: linear-gradient and repeating-linear-gradient

  3. Transition styles: shared-element, custom, and card

  4. 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.