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.
Install
[]
= "0.1.0-alpha.3"
Release Status
- Current crate version:
0.1.0-alpha.3. - Release wave: June 8, 2026 workspace integration update.
- Publish status: Prepared as a crates.io update for this package.
- Scope: Serializable worker-first cursor hover effect configuration for Dioxus.
- The README install examples and local workspace dependency requirements are aligned with this publish wave.
Integration Recipes
Route-level integrations can build one manifest and reuse it across SSR, Strata-style route metadata, asset-budget reports, and optimizer caches:
use *;
let config = hoverfx.with_default_effect;
let policy = hoverfx_route_policy
.route
.diagnostics
.fallback;
let manifest = hoverfx_manifest_fragment;
let batch = hoverfx_serialize_batch?;
let budget = hoverfx_asset_budget_bridge;
let migration = hoverfx_strata_migration_plan;
assert_eq!;
assert!;
assert!;
assert!;
# Ok::
For deterministic build output, use HoverFxBatchOptions { deterministic_parallel: true, ..Default::default() }. HoverFxRuntimeIds::duplicate_ids and
deduped guard generated script/style ids, hoverfx_optimizer_artifacts
returns minifier/cache-friendly hashes, and hoverfx_workertown_offload_plan
describes serializable off-main-thread tasks.