AnimationScope

open class AnimationScope<T : Node>(val node: T)

Node animations configurator interface for ParallelTransition and SequentialTransition.

Inheritors

Constructors

Link copied to clipboard
constructor(node: T)

Properties

Link copied to clipboard
val animations: MutableList<Animation>

collection of animations within this scope.

Link copied to clipboard
val node: T

node that the animations belong to.

Functions

Link copied to clipboard
fun build(): Array<Animation>

Return array of animations based on current configuration.

Link copied to clipboard
inline fun fade(duration: Duration = 400.0.ms, configuration: FadeTransition.() -> Unit): FadeTransition

Append a FadeTransition.

Link copied to clipboard
inline fun path(duration: Duration = 400.0.ms, path: Shape? = null, configuration: PathTransition.() -> Unit): PathTransition

Append a PathTransition.

Link copied to clipboard
inline fun rotate(duration: Duration = 400.0.ms, configuration: RotateTransition.() -> Unit): RotateTransition

Append a RotateTransition.

Link copied to clipboard
inline fun scale(duration: Duration = 400.0.ms, configuration: ScaleTransition.() -> Unit): ScaleTransition

Append a ScaleTransition.

Link copied to clipboard
inline fun translate(duration: Duration = 400.0.ms, configuration: TranslateTransition.() -> Unit): TranslateTransition

Append a TranslateTransition.