Avatar Card
A circular avatar plus two text lines — the canonical user-profile placeholder. Combines a round shimmer with two narrower bars.
Avatar Card the 3rd of 12 designs in the 12 CSS Skeleton Loaders collection. The design is implemented in pure CSS — no JavaScript required. Copy the HTML and CSS panels below into your project. Because the demo is pure CSS, it works in any framework or templating engine you happen to use. The design honours prefers-reduced-motion and uses real semantic markup, so it ships accessibility-ready out of the box.
Live preview
The code
<div class="sk-avatar">
<div class="sk-avatar-circle"></div>
<div class="sk-avatar-lines">
<div class="sk-avatar-bar" style="width: 110px"></div>
<div class="sk-avatar-bar" style="width: 70px; height: 8px"></div>
</div>
</div> .sk-avatar {
display: flex;
align-items: center;
gap: 14px;
width: 220px;
}
.sk-avatar-circle {
width: 44px;
height: 44px;
border-radius: 50%;
background: linear-gradient(90deg, #1f1f28 0%, #2a2a36 50%, #1f1f28 100%);
background-size: 200% 100%;
animation: skShimmer 1.5s linear infinite;
flex-shrink: 0;
}
.sk-avatar-lines {
display: flex;
flex-direction: column;
gap: 8px;
}
.sk-avatar-bar {
height: 11px;
border-radius: 5px;
background: linear-gradient(90deg, #1f1f28 0%, #2a2a36 50%, #1f1f28 100%);
background-size: 200% 100%;
animation: skShimmer 1.5s linear infinite;
}
@keyframes skShimmer {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
@media (prefers-reduced-motion: reduce) {
.sk-avatar,
.sk-avatar * {
animation: none !important;
}
}