Skip to main content

Module animation_timing

Module animation_timing 

Source
Expand description

Animation timing helpers for embedded transitions.

Provides interval remapping, table-based cubic easing samples, and the moook spatial interpolation curve used for stack push/pop motion.

Constants§

DEFAULT_DURATION_MS
Default single-animation duration.
FRAME_INTERVAL_MS
Target frame interval at 30 Hz.
MOOOK_DURATION_MS
interpolate_moook_duration() (3 in + 4 out frames).
NORMALIZED_MAX
Normalized animation progress maximum (16-bit).
PORT_HOLE_DURATION_MS
PORT_HOLE_TRANSITION_DURATION_MS / ROUND_FLIP_ANIMATION_DURATION_MS.
SHUTTER_DURATION_MS
SHUTTER_TRANSITION_DURATION_MS (2 + 4 frames).

Functions§

interpolate_moook
Full moook spatial interpolation (interpolate_moook).
interpolate_moook_soft
Moook with linear middle segment (interpolate_moook_soft).
moook_curve
Map linear progress t in [0, 1] through moook spatial easing to [0, 1] (may overshoot).
moook_duration_ms
moook_in_duration_ms
moook_out_duration_ms
moook_soft_duration_ms
table_ease_in_sample
Table-based cubic ease-in sample (32-entry lookup).
timing_clip
Clip normalized progress to [0, NORMALIZED_MAX].
timing_half_phase
Two-phase helper: first half / second half of a transition (port-hole, shutter, round window).
timing_scaled
Remap normalized progress into [interval_start, interval_end].
timing_shutter_phase
Shutter timing: first 2/6 then 4/6 of total duration.