# Skeleton Shimmer

> Shimmering placeholder lines that show content is on its way.

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

## HTML

```html
<div class="skeleton-card">
  <div class="skeleton skeleton-title"></div>
  <div class="skeleton"></div>
  <div class="skeleton skeleton-short"></div>
</div>
```

## CSS

```css
.skeleton-card {
  display: grid;
  gap: 12px;
}

.skeleton {
  width: 220px;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 37%, #e5e7eb 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.skeleton-title {
  width: 140px;
  height: 20px;
}

.skeleton-short {
  width: 160px;
}

@keyframes shimmer {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}
```

## Notes

- This CSS Skeleton Shimmer is 33 lines of pure CSS (0.5 KB) with no JavaScript and no dependencies. It uses keyframe animations, linear gradients, CSS Grid and reduced-motion support.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
