StartOffset

A one-time shift of a repeating animation's start time, used to stagger or delay loops (see repeatable / infiniteRepeatable).

Unlike a tween's delay — which is baked into the spec and so repeats every cycle — a StartOffset applies only once, to the first cycle:

Constructors

Link copied to clipboard
constructor(offsetMillis: Int, offsetType: StartOffsetType = StartOffsetType.Delay)
constructor(offset: Duration, offsetType: StartOffsetType = StartOffsetType.Delay)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The offset magnitude in milliseconds.

Link copied to clipboard

Whether the offset delays the first cycle or fast-forwards into it.