12 CSS Skeleton Loaders

Stat Tiles

Three KPI tiles in a row, each with a small label and a big number placeholder — the dashboard / analytics loading state.

Pure CSS MIT licensed

Stat Tiles the 9th 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

Open in playground

The code

<div class="sk-stats">
  <div class="sk-stat">
    <div class="sk-stat-label"></div>
    <div class="sk-stat-num"></div>
  </div>
  <div class="sk-stat">
    <div class="sk-stat-label"></div>
    <div class="sk-stat-num"></div>
  </div>
  <div class="sk-stat">
    <div class="sk-stat-label"></div>
    <div class="sk-stat-num"></div>
  </div>
</div>
.sk-stats {
  width: 220px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.sk-stat {
  background: #15151b;
  padding: 10px 8px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sk-stat-label,
.sk-stat-num {
  background: linear-gradient(90deg, #1f1f28 0%, #2a2a36 50%, #1f1f28 100%);
  background-size: 200% 100%;
  animation: skShimmer 1.5s linear infinite;
  border-radius: 4px;
}
.sk-stat-label {
  height: 8px;
  width: 70%;
}
.sk-stat-num {
  height: 16px;
  width: 60%;
}
@keyframes skShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sk-stats,
  .sk-stats * {
    animation: none !important;
  }
}

Search CodeFronts

Loading…