# Glossy Button

> A shiny gel pill button with a glass highlight on top, inspired by early-2000s interfaces.

- Category: [CSS Buttons](https://copy-css.com/category/buttons)
- Tags: aqua, gel, web 2.0, shiny, skeuomorphic
- Live preview: https://copy-css.com/snippets/glossy-button
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<button class="btn-glossy">Download</button>
```

## CSS

```css
.btn-glossy {
  position: relative;
  padding: 15px 40px;
  border: 1px solid #1e40af;
  border-radius: 999px;
  background: linear-gradient(#3b82f6, #1d4ed8 60%, #1e40af);
  color: #fff;
  font: 700 16px/1 system-ui, sans-serif;
  text-shadow: 0 -1px 0 #1e3a8a;
  box-shadow:
    inset 0 -3px 6px #60a5fa,
    0 6px 12px -4px #1e40af;
  cursor: pointer;
  transition: filter 0.2s ease;
}

/* The glass highlight */
.btn-glossy::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 10%;
  right: 10%;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(#ffffffb3, #ffffff14);
  pointer-events: none;
}

.btn-glossy:hover {
  filter: brightness(1.1) saturate(1.1);
}

.btn-glossy:active {
  box-shadow:
    inset 0 2px 6px #1e3a8a,
    0 2px 6px -2px #1e40af;
}

.btn-glossy:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 3px;
}
```

## Notes

- This CSS Glossy Button is 43 lines of pure CSS (0.9 KB) with no JavaScript and no dependencies. It uses transitions, linear gradients, box shadows and text shadows.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
