# Story Ring Avatar

> An avatar wrapped in a colorful gradient ring, like social media stories.

- Category: [CSS Effects](https://copy-css.com/category/effects)
- Tags: avatar, story, ring, conic-gradient, social
- Live preview: https://copy-css.com/snippets/story-ring-avatar
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="story"><span>AK</span></div>
```

## CSS

```css
.story {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 3px;
  box-sizing: border-box;
  border-radius: 50%;
  background: conic-gradient(#f59e0b, #ef4444, #d946ef, #f59e0b);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.story:hover {
  transform: scale(1.06);
}

.story span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #e0e7ff;
  color: #4338ca;
  font: 700 22px system-ui, sans-serif;
}
```

## Notes

- This CSS Story Ring Avatar is 29 lines of pure CSS (0.5 KB) with no JavaScript and no dependencies. It uses transitions, transforms, conic gradients and CSS Grid.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
