96 easings. 51 presets. 15 spring configs. Color, transform, unit interpolation. Scroll-linked. Stagger. Timeline. Zero dependencies.
import { flux } from 'usefluxui' // Animate with easing flux(element, { from: { opacity: 0, y: 20 }, to: { opacity: 1, y: 0 }, easing: 'out-cubic', duration: 500, }) // One-liner with preset flux(element, { preset: 'fade-up' }) // Spring physics flux(element, { from: { scale: 0 }, to: { scale: 1 }, spring: 'bouncy', })
Hex, RGB, RGBA, HSL, HSLA, named colors.
translate, rotate, scale, skew, perspective.
Scrub tied to scroll position. Start/end edges.
Sequence animations with offsets. Chainable.
Multiple elements with per-item delay.
Generate @keyframes CSS from any easing.
useFlux returns a ref. Attach, auto-play, auto-clean.
Full type definitions. IDE autocomplete.