Grab the code for this component with free account
Every free component's full source, ready to copy or download, plus 30 monthly AI credits for Atheros AI routing to make it yours.
Button component
A pill-shaped button whose fill wipes in from the left edge: an overlay layer scales from scaleX(0) to scaleX(1) on hover and on keyboard focus, while the trailing icon chip inverts to the accent colour.
::before overlay filled with --bgs-hover scales from scaleX(0) to scaleX(1) with transform-origin: left center, wiping the surface colour in from the left edge (GPU-composited transform, no repaint):focus-visible reproduces the identical wipe and icon inversion as :hover, so the button never has a keyboard-only dead state--bgs-ink fill becomes --bgs-accent, glyph becomes --color-on-primarycolor-mix of --bgs-hover and --bgs-accent) and draws an inset hairline ring for tactile feedback.bg-layer::before / .bg-layer::after) drawn from --bgs-line, framing the buttonprefers-reduced-motion: reduce — all transitions and animations collapse to 0.01ms<button> carries an aria-label matching its visible text.bgs-btn__icon is marked aria-hidden="true" — the arrow adds no label text:focus-visible draws a 2px --ring outline at 2px offset:focus-visible triggers the same wipe and icon inversion as :hover, so keyboard users see the same affordanceevent.detail > 0); Enter/Space keep focus on the buttonprefers-reduced-motion: reduce collapses all transitions to 0.01msOpen Gradient Sweep Button in Atheros AI Builder, pick a design system and ask the AI assistant to change the layout, copy or behaviour — the button is regenerated against your tokens. Take the HTML, CSS, JS and React source with you, or pull it into your repo from Claude Code, Cursor or Codex over MCP.

A gradient button with a diagonal shine sweep animation that travels across the surface on hover, powered by GPU-composited `transform: translateX()` transitions — design-system agnostic.

A press button with a sharp-cornered accent fill, a 2px border, and a hard offset shadow that collapses as the button physically presses down into the page on click — powered by GPU-composited `transform: translate()` transitions.

A gradient accent circle with a contrasting chevron arrow that expands into a full pill on hover, sweeping under the label — a faithful port of the original circle-expand button, animated with GPU-friendly `clip-path` + `transform: scaleX()` instead of a width transition.

A 3D card-flip button that rotates on hover to reveal a confirmation state using CSS perspective and `rotateY(180deg)` transform — fully design-system agnostic.

An outlined button with a gradient border that sweeps diagonally from corner to corner on hover using a single clip-path transition and glow box-shadow — pure CSS, no JavaScript required for the effect.

A minimal uppercase text button whose accent outline grows from zero at the top-left corner on hover, changing from a muted idle border to an accent border at a consistent weight.
300+ production-ready components and Atheros AI models. Every paid plan includes access to the whole Atheros — AI Builder and Learning.
Starting at $9.9 per month, billed annually
