Skip to main content

Module motion

Module motion 

Source
Expand description

Liquid motion: the spring presets every component shares, and the press interaction (scale + specular boost) that makes glass feel physical.

Structs§

LiquidMotion
Named springs used across the Liquid components (value-space, velocity preserving).

Functions§

liquid_press_scale
Press feedback for glass controls, per the Liquid Glass law: touched glass GROWS (spring scale toward pressed_scale — never smaller) and turns MORE TRANSPARENT (the returned content alpha dips while pressed, the reference “…” dots fading as the button lifts). Returns the pressed state so callers can also boost the specular highlight.