未验证 提交 d9d67090 编写于 作者: L luoying_ace 提交者: Gitee

update zh-cn/application-dev/reference/arkui-ts/ts-transition-animation-component.md.

Signed-off-by: Nluoying_ace <luoying19@huawei.com>
上级 a2a99c19
...@@ -51,7 +51,7 @@ struct TransitionExample { ...@@ -51,7 +51,7 @@ struct TransitionExample {
}) })
if (this.flag) { if (this.flag) {
// Image的显示和消失配置为不同的过渡效果 // Image的显示和消失配置为不同的过渡效果
Image($r('app.media.bg1')).width('80%').height(300) Image($r('app.media.testImg')).width(300).height(300)
.transition({ type: TransitionType.Insert, scale: { x: 0, y: 1.0 } }) .transition({ type: TransitionType.Insert, scale: { x: 0, y: 1.0 } })
.transition({ type: TransitionType.Delete, rotate: { angle: 180 } }) .transition({ type: TransitionType.Delete, rotate: { angle: 180 } })
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册