midpoint

A linear easing function that sets the midpoint at a given position.

Parameters

position

A value in [0, 1] indicating where the midpoint should be. A value of 0.5 will behave the same as linear easing.