diff --git a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263259399.png b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263259399.png index c9e2e084909884daa701f5e967050c849c036e5a..dc4a266c02708116362da21577d5b1e582a011fd 100644 Binary files a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263259399.png and b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263259399.png differ diff --git a/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263259399.png:Zone.Identifier b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263259399.png:Zone.Identifier new file mode 100644 index 0000000000000000000000000000000000000000..5014c60c73db838c90d6285f59594ffeae398275 --- /dev/null +++ b/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263259399.png:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=https://gitee.com/openharmony/docs/pulls/2845/files +HostUrl=https://gitee.com/openharmony/docs/raw/32dae5064fb2c1d43eb8a383be7af76c9d8c4d44/zh-cn/application-dev/ui/figures/zh-cn_image_0000001263259399.png diff --git a/zh-cn/application-dev/ui/ui-js-animate-component.md b/zh-cn/application-dev/ui/ui-js-animate-component.md index 674d3c3b9c5aea8f80b913189dce383836805dbe..91baf79e1993a469e46f03560e64d79e3c14e0ae 100644 --- a/zh-cn/application-dev/ui/ui-js-animate-component.md +++ b/zh-cn/application-dev/ui/ui-js-animate-component.md @@ -104,7 +104,30 @@ export default { this.options = { duration: 4000, }; - this.keyframes = [ { transform: { translate: '-120px -0px', scale: 1, rotate: 0 }, transformOrigin: '100px 100px', offset: 0.0, width: 200, height: 200 }, { transform: { translate: '120px 0px', scale: 1.5, rotate: 90 }, transformOrigin: '100px 100px', offset: 1.0, width: 300, height: 300 } ]; + this.keyframes = [ + { + transform: { + translate: '-120px -0px', + scale: 1, + rotate: 0 + }, + transformOrigin: '100px 100px', + offset: 0.0, + width: 200, + height: 200 + }, + { + transform: { + translate: '120px 0px', + scale: 1.5, + rotate: 90 + }, + transformOrigin: '100px 100px', + offset: 1.0, + width: 300, + height: 300 + } + ]; }, Show() { this.animation = this.$element('content').animate(this.keyframes, this.options); diff --git a/zh-cn/application-dev/ui/ui-js-animate-dynamic-effects.md b/zh-cn/application-dev/ui/ui-js-animate-dynamic-effects.md index b4d2bf487d7fd39890b98e6311b2bf9bfbfc58c2..b5b8a275fc48d3b404b54a1acffdb4edd4751bf2 100644 --- a/zh-cn/application-dev/ui/ui-js-animate-dynamic-effects.md +++ b/zh-cn/application-dev/ui/ui-js-animate-dynamic-effects.md @@ -25,6 +25,8 @@ ``` /* xxx.css */ .container { + width:100%; + height:100%; flex-direction: column; align-items: center; justify-content: center; @@ -90,7 +92,7 @@ animator支持事件和接口,可以通过添加frame、cancel、repeat、fini ``` -