vael-ui v0.5.7

Springs and timing

A spring takes two numbers. damping sets how it settles: 1 stops without overshooting, and lower values bounce. response is roughly how long it takes, in seconds. A spring has no fixed duration, so you can interrupt it and reverse it from wherever it is.

Try a spring

Settles in about 329 ms.

One spring for the whole app

Set a spring on ConfigProvider, and the drawers, sheets, toasts, indicators and AnimatedNumber inside it all use that spring. The demos below follow the sliders above.

<ConfigProvider :motion="{ spring: { damping: 0.85, response: 0.35 } }">
  <App />
</ConfigProvider>