Skip to content

AnimationStyle

用于覆盖动画的默认参数。

注意: 如果 duration 和 reverse_duration 都设为 Duration,对应的动画将被禁用。可参考 no_animation 方法,以更便捷地创建此类实例。

属性 ​

名称类型默认值说明
durationOptional[DurationValue]None动画时长。
reverse_durationOptional[DurationValue]NoneThe duration of the reverse animation.
curveOptional[AnimationCurve]NoneThe curve to use for the animation.
reverse_curveOptional[AnimationCurve]NoneThe curve to use for the reverse animation.

方法 ​

名称类型默认值说明
no_animation'AnimationStyle'—Creates an instance of AnimationStyle with no animation.
copy'AnimationStyle'—返回此对象的副本,可覆盖指定属性。

关注我,学习大模型、大数据、Python等热门技术。