animate

@JvmName(name = "animateProp")
fun KMutableProperty0<Double>.animate(targetValue: Double, durationInMs: Long, easing: Easing = Easing.None, predelayInMs: Long = 0): PropertyAnimationKey<Double>

animate Double property

Parameters

targetValue

the target animation value

durationInMs

animation duration in milliseconds

easing

the easing to use during the animation, default is Easing.None

predelayInMs

time to wait in milliseconds before the animation starts

@JvmName(name = "animatePropLinearType")
fun <T : LinearType<T>> KMutableProperty0<T>.animate(targetValue: T, durationInMs: Long, easing: Easing = Easing.None, predelayInMs: Long = 0): PropertyAnimationKey<T>

animate LinearType property

Parameters

targetValue

the target animation value

durationInMs

animation duration in milliseconds

easing

the easing to use during the animation, default is Easing.None

predelayInMs

time to wait in milliseconds before the animation starts

fun <T : LinearType<T>> animate(variable: KMutableProperty0<T>, target: T, durationMillis: Long, easing: Easing = Easing.None, predelayInMs: Long = 0): PropertyAnimationKey<T>
fun animate(variable: KMutableProperty0<Double>, target: Double, durationMillis: Long, easing: Easing = Easing.None, predelayInMs: Long = 0): PropertyAnimationKey<Double>