Skip to main content

CountUp

Function CountUp 

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

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

命中 prefers-reduced-motion 时直接显示终值。动画在 use_effect 内驱动, 渲染体保持纯净(见 dioxus-render-purity 规范);数据仅 WASM 端加载,SSR 不挂载本组件。

§Props

For details, see the props struct definition.