Animated

object Animated

Functions

Link copied to clipboard
fun delay(startDelay: Long, animation: AnimatedAnimation): AnimatedAnimation

Returns AnimatedAnimation ready for running single or a collection of animations after given delay in milliseconds

Link copied to clipboard
fun loop(animation: AnimatedAnimation, repeatCount: Int = -1): AnimatedAnimation

Returns LoopAnimation ready for running AnimatedAnimation object repeated @repeatCount times. By default it runs infinite number of times.

Link copied to clipboard

Returns ParallelAnimation ready for running collection of animations in parallel

Link copied to clipboard

Returns SequenceAnimation ready for running collection of animations in sequence one after another. The order of arguments is the order of the sequence

Link copied to clipboard
fun spring(target: DynamicValue<Float>, to: Float, springConfig: SpringConfig = SpringConfig(), animationFinishListener: AnimationFinishListener? = null, onUpdate: (Float) -> Unit? = null): AnimatedAnimation

Returns an AnimatedAnimation ready for running spring animation based on the SpringConfig params

Link copied to clipboard
fun stagger(staggerMs: Long, vararg animations: AnimatedAnimation): AnimatedAnimation

Returns AnimatedAnimation ready for running collection of animations in stagger with given value in milliseconds

Link copied to clipboard
fun timing(target: DynamicValue<Float>, to: Float, duration: Long = 300, easing: Interpolator = Easing.accelerateDecelerate(), animationFinishListener: AnimationFinishListener? = null, onUpdate: (Float) -> Unit? = null): AnimatedAnimation

Returns an AnimatedAnimation ready for running timing animation that calculate animated values and set them on target param.