Expand description
This module defines the RippleState
struct, which manages the state for ripple animations in interactive UI components.
Currently, two foundational components use it to display ripple animations: crate::surface::surface
and crate::fluid_glass::fluid_glass
.
Other components composed from those, such as crate::button::button
, also leverage it to provide ripple effects.
Structsยง
- Ripple
State RippleState
manages the animation and hover state for ripple effects in interactive UI components. It is designed to be shared across components usingArc<RippleState>
, enabling coordinated animation and hover feedback.