fromBottom

fun fromBottom(progress: Float): Float

Calculates a translation that animates the content in from below the visible area.

Starts fully below the screen and reaches position 0 at completion.

Return

The offset in pixels at the given progress (starts at distance, ends at 0).

Parameters

progress

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