# Corner Fill Card

> A link card where a small corner circle grows to flood the card with color and invert the text on hover.

- Category: [CSS Cards](https://copy-css.com/category/cards)
- Tags: hover, fill, circle, scale, link card, color change
- Live preview: https://copy-css.com/snippets/corner-fill-card
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<a class="fill-card" href="#">
  <span class="fill-card-arrow" aria-hidden="true">→</span>
  <h3>Get started</h3>
  <p>Set up your first project in under five minutes.</p>
</a>
```

## CSS

```css
.fill-card {
  position: relative;
  display: block;
  width: 220px;
  padding: 22px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  color: #431407;
  font-family: system-ui, sans-serif;
  text-decoration: none;
  isolation: isolate;
  transition: color 0.4s ease;
}

.fill-card::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  z-index: -1;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ea580c;
  transition: transform 0.5s ease;
}

.fill-card:hover,
.fill-card:focus-visible {
  color: #fff;
}

.fill-card:hover::before,
.fill-card:focus-visible::before {
  transform: scale(8);
}

.fill-card:focus-visible {
  outline: 3px solid #9a3412;
  outline-offset: 3px;
}

.fill-card-arrow {
  position: absolute;
  top: 10px;
  right: 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.fill-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.fill-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .fill-card,
  .fill-card::before {
    transition: none;
  }
}
```

## Notes

- This CSS Corner Fill Card is 70 lines of pure CSS (1.1 KB) with no JavaScript and no dependencies. It uses transitions, transforms, keyboard focus styles and reduced-motion support.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
