in_out_sine

Function
in_out_sine(t: float) -> float

Sine ease in-out - perfectly smooth, natural curve

Based on a half sine wave. Creates the smoothest possible curve for in-out animations. No sharp transitions, completely organic feeling. Often preferred for subtle, elegant animations. Use cases: - Elegant UI animations - Smooth field changes - Natural breathing effects - When smoothness is paramount

Parameters

t
Time factor between 0 and 1

Returns

Eased value between 0 and 1, following -(cos(π*t)-1)/2 Raises: ValueError: If t is not between 0 and 1