• Interpolates between min and max with smoothing at the limits.

    This export function interpolates between min and max in a similar way to Lerp. However, the interpolation will gradually speed up from the start and slow down toward the end. This is useful for creating natural-looking animation, fading and other transitions.

    Returns

    the smooth stepped value

    Parameters

    • from: number

      from

    • to: number

      to

    • tx: number

      value

    Returns number