class Animation

package haxe.ui.styles.animation

      ↪ haxe.ui.styles.animation.Animation


Properties
currentKeyFrame:KeyFrame
read-only
Returns the current key frame running in the animation.
delay:Float
read-only
Specifies a delay for the start of an animation in seconds. If using negative values, the animation will start as if it had already been playing for N seconds.
direction:AnimationDirection
read-only
Specifies whether an animation should be played forwards, backwards or in alternate cycles.
@see `haxe.ui.constants.AnimationDirection`
duration:Float
read-only
Defines how long time an animation should take to complete.
easingFunctionunknown_args - CEnumunknown - CEnum
read-only
Specifies the speed curve of the animation.
@see `haxe.ui.styles.EasingFunction`
fillMode:AnimationFillMode
read-only
Specifies a style for the target when the animation is not playing (befores it starts, after it ends, or both).
@see `haxe.ui.constants.AnimationFillMode`
iterationCount:Int
read-only
Specifies the number of times an animation should run before it stops. For an infinite loop set to -1.
keyframeCount:Int
read-only
Specifies the total keyframes count in the animation.
name:String
The name of the animation.
running:Bool
read-only
Returns if the animation is running.
target:Dynamic
read-only
Specifies the target to apply the animation.


Methods
run(onFinish = null)
Starts to run the animation.
stop()
Stops the animation if it is running.


Static Methods
createWithKeyFrames(animationKeyFrames:AnimationKeyFrames, targetDynamic, ?options:AnimationOptions):Animation
static