atFraction

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

Return

an KeyframeEntity so a custom com.jakewharton.mosaic.animation.Easing can be added by with method

Parameters

fraction

The fraction when the animation should reach specified value.