Tween
class Tween(val duration: Duration = 1.seconds, val ease: MotionEasingFunction = MotionEasingFunction.EaseInOut, val cubicBezier: List<Double>? = null, val delay: Duration = Duration.ZERO, val repeat: Int = 0, val repeatType: RepeatType? = null, val repeatDelay: Duration? = null) : MotionAnimation(source)
Tween animation.
Parameters
duration
Duration of the animation (default is 1 second)
ease
Easing function (default is MotionEasingFunction.EaseInOut)
cubicBezier
Custom cubic bezier easing function
delay
Delay before the animation starts
repeat
Number of times the animation should repeat
repeatType
Type of the repeat
repeatDelay
Delay between repeats
Constructors
Link copied to clipboard
constructor(duration: Duration = 1.seconds, ease: MotionEasingFunction = MotionEasingFunction.EaseInOut, cubicBezier: List<Double>? = null, delay: Duration = Duration.ZERO, repeat: Int = 0, repeatType: RepeatType? = null, repeatDelay: Duration? = null)