dioxus-hoverfx-core
Serializable configuration for worker-first cursor proximity hover effects.
use ;
let config = new
.with_default_effect
.with_radius_px
.with_shape
.with_falloff
.with_strength
.with_effect;
assert!;
let json = to_string?;
# Ok::
Built-in presets are spotlight, soft-glow, border-trace, sheen, and
color-wash. Defaults are tuned for worker-first rendering: 180px radius,
smooth falloff, 1.0 strength, 0.18 pointer smoothing, and up to 8 active
elements per frame.