fade_inout
Functionfade_inout(
states: State | list[State],
center_t: float | list[float] | None = None,
hold_duration: float | None = None,
fade_duration: float | None = None,
easing: dict[str, Callable[[float], float]] | None = None
) -> list[KeyState]
Fade in, hold, then fade out.
Parameters
-
states - State to fade, or list of states.
-
center_t - Center time of the hold, or list of times.
-
hold_duration - Duration of the hold period.
-
fade_duration - Duration of each fade (in and out).
-
easing - Optional easing dict for transitions.