主题
AnimationStyle
用于覆盖动画的默认参数。
注意: 如果 duration 和 reverse_duration 都设为 Duration,对应的动画将被禁用。可参考 no_animation 方法,以更便捷地创建此类实例。
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
duration | Optional[DurationValue] | None | 动画时长。 |
reverse_duration | Optional[DurationValue] | None | The duration of the reverse animation. |
curve | Optional[AnimationCurve] | None | The curve to use for the animation. |
reverse_curve | Optional[AnimationCurve] | None | The curve to use for the reverse animation. |
方法
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
no_animation | 'AnimationStyle' | — | Creates an instance of AnimationStyle with no animation. |
copy | 'AnimationStyle' | — | 返回此对象的副本,可覆盖指定属性。 |