# Drop Shadow Filter

> filter: drop-shadow() follows the real shape, including this speech bubble tail.

- Category: [CSS Box Shadows](https://copy-css.com/category/shadows)
- Tags: filter, drop-shadow, speech bubble, shape
- Live preview: https://copy-css.com/snippets/drop-shadow-filter
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="bubble">My shadow follows my tail!</div>
```

## CSS

```css
.bubble {
  position: relative;
  max-width: 200px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  color: #111;
  font: 500 15px/1.4 system-ui, sans-serif;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 24px;
  border: 10px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
}
```

## Notes

- This CSS Drop Shadow Filter is 20 lines of pure CSS (0.4 KB) with no JavaScript and no dependencies. It uses filters.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
