AnimationStyle
Used to override the default parameters of an animation.
Note
If duration and reverse_duration are set to Duration, the corresponding animation will be disabled. See no_animation method for a convenient way to create such an instance.
Properties
curve- The curve to use for the animation.duration- The duration of the animation.reverse_curve- The curve to use for the reverse animation.reverse_duration- The duration of the reverse animation.
Methods
copy- Returns a copy of this object with the specified properties overridden.no_animation- Creates an instance ofAnimationStylewith no animation.
Properties
curveclass-attributeinstance-attribute
curve: Optional[AnimationCurve] = NoneThe curve to use for the animation.
durationclass-attributeinstance-attribute
duration: Optional[DurationValue] = NoneThe duration of the animation.
reverse_curveclass-attributeinstance-attribute
reverse_curve: Optional[AnimationCurve] = NoneThe curve to use for the reverse animation.
reverse_durationclass-attributeinstance-attribute
reverse_duration: Optional[DurationValue] = NoneThe duration of the reverse animation.
Methods
copy
copy(duration: Optional[DurationValue] = None, reverse_duration: Optional[DurationValue] = None, curve: Optional[AnimationCurve] = None, reverse_curve: Optional[AnimationCurve] = None)Returns a copy of this object with the specified properties overridden.