toTop

fun toTop(progress: Float): Float

Calculates a translation that moves the content upward by the full distance.

Return

The negative offset in pixels at the given progress.

Parameters

progress

Animation progress from 0f (start) to 1f (end).