SpringTime

class SpringTime(val duration: Duration = 1.seconds, val bounce: Double = 0.25, val visualDuration: Duration? = null, val delay: Duration = Duration.ZERO, val repeat: Int = 0, val repeatType: RepeatType? = null, val repeatDelay: Duration? = null) : MotionAnimation(source)

Spring animation based on time.

Parameters

duration

Duration of the animation (default is 1 second)

bounce

Bounce factor, 0 is no bounce, and 1 is extremely bouncy (default is 0.25)

visualDuration

Duration of the visual part of the animation (overrides the duration)

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, bounce: Double = 0.25, visualDuration: Duration? = null, delay: Duration = Duration.ZERO, repeat: Int = 0, repeatType: RepeatType? = null, repeatDelay: Duration? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val repeat: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard