Skip to content

Utils ​

A collection of tree-shakeable utility functions to help you build interactive components. Only the functions you import are included in your bundle.

Most commonly used ​

FunctionDescription
animateAnimate CSS properties with easing
transitionCSS transition helper (enter/leave)
tweenTween numeric values over time
scrollToSmooth scroll to an element or position
debounce / throttleRate-limit function calls
lerp / dampLinear interpolation and damping
addClass / removeClassClass manipulation helpers
createStorageBrowser storage with unified API
nextFrame / nextTickScheduling helpers

All utilities by category ​

Utils ​

Value utils ​

Collision utils ​

CSS utils ​

Storage utils ​

History utils ​

Math utils ​

String utils ​

MIT Licensed