# Clip Path Shapes

> Three ready-made clip-path classes that crop images into a circle, a hexagon and a slanted card.

- Category: [CSS Effects](https://copy-css.com/category/effects)
- Tags: clip-path, hexagon, circle, polygon, image shapes, mask
- Live preview: https://copy-css.com/snippets/clip-path-shapes
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="clip-shapes">
  <img class="clip-circle" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Crect width='10' height='10' fill='%23f9a8d4'/%3E%3Ccircle cx='7' cy='3' r='1.6' fill='%23fef08a'/%3E%3Cpath d='M0 10V7l3-2 3 2 4-2v5z' fill='%237c3aed'/%3E%3C/svg%3E" alt="Circle-cropped sunset" width="80" height="80">
  <img class="clip-hexagon" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Crect width='10' height='10' fill='%23f9a8d4'/%3E%3Ccircle cx='7' cy='3' r='1.6' fill='%23fef08a'/%3E%3Cpath d='M0 10V7l3-2 3 2 4-2v5z' fill='%237c3aed'/%3E%3C/svg%3E" alt="Hexagon-cropped sunset" width="80" height="80">
  <img class="clip-slant" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Crect width='10' height='10' fill='%23f9a8d4'/%3E%3Ccircle cx='7' cy='3' r='1.6' fill='%23fef08a'/%3E%3Cpath d='M0 10V7l3-2 3 2 4-2v5z' fill='%237c3aed'/%3E%3C/svg%3E" alt="Slant-cropped sunset" width="80" height="80">
</div>
```

## CSS

```css
.clip-shapes {
  display: flex;
  gap: 14px;
}

.clip-shapes img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: cover;
  transition: clip-path 0.4s ease;
}

.clip-circle {
  clip-path: circle(50%);
}

.clip-hexagon {
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}

.clip-slant {
  clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 88%);
}

.clip-shapes img:hover {
  clip-path: inset(0 round 12px);
}

@media (prefers-reduced-motion: reduce) {
  .clip-shapes img {
    transition: none;
  }
}
```

## Notes

- This CSS Clip Path Shapes is 34 lines of pure CSS (0.5 KB) with no JavaScript and no dependencies. It uses transitions, clip paths, Flexbox and reduced-motion support.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
