# Shine Hover Card

> A premium dark card with a glossy light streak that sweeps across it when hovered or focused.

- Category: [CSS Cards](https://copy-css.com/category/cards)
- Tags: shine, gloss, light sweep, hover, premium, shimmer
- Live preview: https://copy-css.com/snippets/shine-hover-card
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<a class="shine-card" href="#">
  <small>Members</small>
  <h3>Gold Pass</h3>
  <p>Early access, free shipping and priority support.</p>
</a>
```

## CSS

```css
.shine-card {
  position: relative;
  display: block;
  width: 230px;
  padding: 22px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #1f2937, #0b0f19);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6);
  color: #f8fafc;
  font-family: system-ui, sans-serif;
  text-decoration: none;
}

.shine-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.shine-card:hover::after,
.shine-card:focus-visible::after {
  left: 130%;
}

.shine-card:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

.shine-card small {
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shine-card h3 {
  margin: 6px 0;
  background: linear-gradient(90deg, #fde68a, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 24px;
}

.shine-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .shine-card::after {
    display: none;
  }
}
```

## Notes

- This CSS Shine Hover Card is 66 lines of pure CSS (1.2 KB) with no JavaScript and no dependencies. It uses transitions, transforms, linear gradients and box shadows.
- gradient-clipped text: Includes the -webkit- prefix Safari still needs.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
