# Skeleton List

> Placeholder rows with an avatar and two text lines that pulse in a wave from top to bottom.

- Category: [CSS Loaders & Spinners](https://copy-css.com/category/loaders)
- Tags: placeholder, avatar, comments, rows, wave
- Live preview: https://copy-css.com/snippets/skeleton-list
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="skel-list" role="status" aria-label="Loading list">
  <div class="skel-list-item"><span class="skel-list-avatar"></span><span class="skel-list-lines"></span></div>
  <div class="skel-list-item"><span class="skel-list-avatar"></span><span class="skel-list-lines"></span></div>
  <div class="skel-list-item"><span class="skel-list-avatar"></span><span class="skel-list-lines"></span></div>
</div>
```

## CSS

```css
.skel-list {
  display: grid;
  gap: 18px;
  width: min(100%, 280px);
}

.skel-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skel-list-item:nth-child(2) { --delay: 0.15s; }
.skel-list-item:nth-child(3) { --delay: 0.3s; }

.skel-list-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.skel-list-lines {
  display: grid;
  flex: 1;
  gap: 8px;
}

.skel-list-lines::before,
.skel-list-lines::after {
  content: "";
  height: 12px;
  border-radius: 6px;
}

.skel-list-lines::before {
  width: 55%;
}

.skel-list-avatar,
.skel-list-lines::before,
.skel-list-lines::after {
  background: #e2e8f0;
  animation: skel-list-fade 0.9s ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}

@keyframes skel-list-fade {
  to { background: #f8fafc; }
}

@media (prefers-reduced-motion: reduce) {
  .skel-list-avatar,
  .skel-list-lines::before,
  .skel-list-lines::after { animation: none; }
}
```

## Notes

- This CSS Skeleton List is 56 lines of pure CSS (0.9 KB) with no JavaScript and no dependencies. It uses keyframe animations, CSS Grid, Flexbox and custom properties.
- Customize with: `--delay`.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
