Skip to main content

CountUp

Function CountUp 

Source
fn CountUp(_: CountUpProps) -> Element
Expand description

数字滚动组件:值从 0 以 easeOutQuint 缓动递增到 target(约 450ms)。

语义是「数据已聚合完成」的信号而非装饰;450ms 在 NN/g 动效时长上限 (500ms) 内。命中 prefers-reduced-motion 时直接显示终值。动画在 use_effect 内驱动,渲染体保持纯净(见 dioxus-render-purity 规范); 数据仅 WASM 端加载,SSR 不挂载本组件。

§Props

For details, see the props struct definition.