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
Three vintage mechanical-keyboard keycaps in three finishes — with domed tops, tall front skirts, and a deep physical press: the cap sinks, the skirt compresses, and the contact shadow tightens, all via GPU-friendly transforms and static shadow swaps.
:active and on keyboard activation: the whole key sinks, the top face travels down inside the shell so the front skirt visibly compresses, and the contact shadow flips to a pre-defined tighter shadow; releasing plays a springy settle-back<button type="button"> elements with no toggle statecolor-mix percentage custom property, so the worn black cap keeps only a faint highlightaria-label naming its key, e.g. "enter key"role="group" with an aria-labeljs/app.js adds is-pressed on Space/Enter keydown and removes it on keyup/blur, so keyboard activation plays the same sink animation as a mouse press:focus-visible with --ring outline and 3px offset on each keycapprefers-reduced-motion: reduce collapses all transitions to 0.01ms — the press becomes instantOpen Keycap Buttons 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 3D card-flip button that rotates on hover to reveal a confirmation state using CSS perspective and `rotateY(180deg)` transform — fully design-system agnostic.

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.

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 pill button with a primary-color gradient circle badge that inverts on hover with a diagonal arrow slide animation — pure CSS transitions, no keyframes required.

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.

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.
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
