Drag & drop
useWheel
A position you drag, throw, scroll or step along a line of items, resting on one: a picker drum, a carousel, a pager. Items read their distance from the resting spot as CSS variables.
Moves a position along a list of items. You drag it, throw it, scroll it or step it with the keys, and it rests on one item. It draws nothing. Each item near the resting spot gets --ui-wheel-offset (in items) and --ui-wheel-distance (in px). Place items with those variables, and style them with v-animate and progressOf. Add role="spinbutton" for a picker, or aria-roledescription="carousel" and Previous and Next buttons for a carousel. For a plain list of cards, CSS scroll snap is simpler.
Install
import { useWheel } from 'vael-ui'