KeyframesSpecConfig
KeyframesSpecConfig stores a mutable configuration of the key frames, including durationMillis, delayMillis, and all the key frames. Each key frame defines what the animation value should be at a particular time. Once the key frames are fully configured, the KeyframesSpecConfig can be used to create a KeyframesSpec.
See also
Properties
Link copied to clipboard
The amount of time that the animation should be delayed. The minimum is 0 and defaults to 0.
Link copied to clipboard
Duration of the animation in milliseconds. The minimum is 0 and defaults to DefaultDurationMillis
Functions
Link copied to clipboard
open infix override fun T.atFraction(@FloatRange(from = 0.0, to = 1.0) fraction: Float): KeyframesSpec.KeyframeEntity<T>
Adds a keyframe so that the animation value will be the value specified at a fraction of the total durationMillis set. For example: 0.8f atFraction 0.50f // half of the overall duration set