CSS Skeleton List
Placeholder rows with an avatar and two text lines that pulse in a wave from top to bottom.
<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>
.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; }
}
About this CSS Skeleton List
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. It works in current versions of Chrome, Edge, Safari and Firefox. It works in any stack: plain HTML, React, Vue, Svelte, Astro, WordPress or Webflow.
CSS features used
Customize it
Change these custom properties to restyle the skeleton list without touching the rest of the CSS:
| Property | Default |
|---|---|
--delay | 0.15s |
How to use this skeleton list
- Copy the HTML and paste it where you want the element to appear.
- Copy the CSS into your stylesheet, or inside a
<style>tag. - Keep the
.skel-listclass name, or rename it in both places. Then tweak colors, sizes and timing to match your design. - Using React or Next.js? Change
classtoclassNamein the HTML. The CSS works as is, including in Tailwind projects (put it in your global stylesheet).
Building with an AI tool?
“Copy for AI” copies a short prompt for Cursor, Claude Code, Lovable, Bolt or v0. Your AI tool opens the Markdown version of this snippet and reads the HTML, CSS and setup notes there. If your tool can't open links, with the code instead. More ways to use copy CSS with AI.