# 卡片使用动效能力 ArkTS卡片开放了使用动画效果的能力,支持[显式动画](../reference/arkui-ts/ts-explicit-animation.md)、[属性动画](../reference/arkui-ts/ts-animatorproperty.md)、[组件内转场](../reference/arkui-ts/ts-transition-animation-component.md)能力。需要注意的是,ArkTS卡片使用动画效果时具有以下限制: **表1** 动效参数限制 | 名称 | 参数说明 | 限制描述 | | -------- | -------- | -------- | | duration | 动画播放时长 | 限制最长的动效播放时长为1秒,当设置大于1秒的时间时,动效时长仍为1秒。 | | tempo | 动画播放速度 | 卡片中禁止设置此参数,使用默认值1。 | | delay | 动画延迟执行的时长 | 卡片中禁止设置此参数,使用默认值0。 | | iterations | 动画播放次数 | 卡片中禁止设置此参数,使用默认值1。 | 以下示例代码实现了按钮旋转的动画效果: ![WidgetAnimation](figures/WidgetAnimation.gif) ```ts @Entry @Component struct AttrAnimationExample { @State rotateAngle: number = 0; build() { Column() { Button('change rotate angle') .onClick(() => { this.rotateAngle = 90; }) .margin(50) .rotate({ angle: this.rotateAngle }) .animation({ curve: Curve.EaseOut, playMode: PlayMode.AlternateReverse }) }.width('100%').margin({ top: 20 }) } } ```