# Horizontal Slider

> A minimal volume-style horizontal slider with an animated speaker icon, an accent track on a dark canvas — speaker wave arcs respond to the volume level and collapse to a mute glyph at zero.

- Category: Slider
- Frameworks: Vanilla, React + CSS, React + Tailwind
- Design system: Aperture
- Dark mode: yes
- Access: premium (Atheros AI Pass)
- Page: https://builder.atheros.ai/components/horizontal-slider
- Preview: https://d17nmjscumqk5d.cloudfront.net/builder/templates/tpl_builder_horizontal_slider/preview-e2dccf4121a6.webp

## Features

- Horizontal orientation with a left-anchored fill driven by `--fill` and `transform: scaleX`
- Animated speaker icon with volume-responsive wave arcs and a mute state at zero
- Thin 2px rail with a glowing amber dot thumb that scales on hover and drag
- Real pointer dragging with pointer capture for smooth cross-boundary tracking
- Eased value animation between steps using a cubic-out curve via requestAnimationFrame
- Full keyboard support with Arrow, Home, End, PageUp, and PageDown keys
- Exposes `role="slider"` with a complete set of ARIA value attributes
- Fully respects `prefers-reduced-motion`

## Accessibility

- **Slider role** — `role="slider"` with `aria-valuemin`, `aria-valuemax`, `aria-valuenow`, and `aria-label`
- **Live value text** — `aria-valuetext` updated to a spoken percent on every change
- **Keyboard navigation** — Arrow, Home, End, PageUp, and PageDown adjust the value
- **Focus indicators** — `:focus-visible` renders an amber outline offset from the rail
- **Decorative markup** — Rail, fill, thumb, and icon are marked `aria-hidden`
- **Reduced motion** — `prefers-reduced-motion: reduce` disables all animations

## Keyboard shortcuts

- `ArrowRight` — Increase by one step
- `ArrowUp` — Increase by one step
- `ArrowLeft` — Decrease by one step
- `ArrowDown` — Decrease by one step
- `Home` — Jump to minimum
- `End` — Jump to maximum
- `PageUp` — Increase by a larger step
- `PageDown` — Decrease by a larger step

## Common questions

**Which frameworks is Horizontal Slider available in?**

Horizontal Slider ships as Vanilla, React + CSS and React + Tailwind — HTML, CSS, JS and React source you can copy, download or clone into Atheros AI Builder.

**Is Horizontal Slider free?**

Horizontal Slider is a premium component. Anyone can preview it; the source, downloads and AI customisation are included with Atheros AI Pass.

**Does Horizontal Slider support dark mode?**

Yes. Horizontal Slider ships light and dark themes, both drawn from the Aperture design system's tokens. Switch the preview to dark mode to compare them.

## Get the code

Preview Horizontal Slider live, then sign in to copy or download the source, apply another design system, or ask the AI assistant to change it: https://builder.atheros.ai/components/horizontal-slider

Every component on https://builder.atheros.ai is also reachable from Claude Code, Cursor and Codex through the Atheros MCP server (paid plans). Component index: https://builder.atheros.ai/llms-components.txt
