Toggle Sidebar B
AppearanceLight & dark mode D

Wake Slider

Slider drawn as a row of bars where a wake of taller bars trails the handle and swells with its speed, then settles flat when it stops.

Default

Drag across the bars, or click to jump. The faster the handle moves, the bigger the wake.

Dark previewReplay previewOpen in new tab

Customize

Fill
Track
Value50
Step1
Bars32
Height56px
Rest Height12px
Gap4px
Sensitivity1
Reach6
Skew0.6
Glide0.3s
Smoothing100ms

API Reference

WakeSlider

PropTypeDefaultDescription
valuenumberundefinedControlled value, bound with v-model:value.
defaultValuenumber50Initial value when uncontrolled.
minnumber0Lowest value.
maxnumber100Highest value.
stepnumber1Snapping grid. Large steps move the handle in notches, and the wake pulses per notch.
barsnumber32How many bars draw the track.
heightnumber56Full bar height in pixels, the ceiling of the wake.
restHeightnumber12Bar height at rest in pixels.
gapnumber4Space between bars in pixels.
fillColorstring'#f5f5f5'Lit bars, up to the value.
trackColorstring'#27272a'Unlit bars.
crestColorstring''Optional tint the raised bars take on by their lift. Empty renders no tint layer.
sensitivitynumber1How easily speed raises the wake. Low needs a flick, high lifts it on a stroll.
reachnumber6Half-width of the wake at full speed, in bars.
skewnumber0.6How much wider the wake is behind the handle than ahead. 0 is symmetric.
glidenumber0.3Seconds the handle takes to settle. Short hugs the finger, long floats behind it.
smoothingnumber100Milliseconds of velocity lag. Low twitches with every change of speed, high lingers.
showValuebooleanfalseShows the value beside the track.
formatValue(value: number) => string-Formats the readout and the announced value.
disabledbooleanfalseFades the slider and ignores input.
ariaLabelstring'Value'Accessible name of the slider.
EventDescription
changeEmitted on every committed change, from the pointer or the keyboard.
update:valueEmitted alongside change, for v-model:value.

Accessibility

Keyboard shortcuts and ARIA behavior.

Shortcut Description
Arrow Right + Arrow UpRaises the value by one step.
Arrow Left + Arrow DownLowers the value by one step.
Page Up + Page DownMoves by ten steps.
Home + EndJumps to the minimum or the maximum.
  • The handle is a slider with aria-valuemin, aria-valuemax, aria-valuenow and aria-valuetext. Keyboard changes skip the wake and move at once.
  • With prefers-reduced-motion the wake is dropped and the bars stay at rest height.