Module ripple_state

Module ripple_state 

Source
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ยง

RippleState
RippleState manages the animation and hover state for ripple effects in interactive UI components. It is designed to be shared across components using Arc<RippleState>, enabling coordinated animation and hover feedback.