12 CSS Skeleton Loaders

Table Rows

Three table rows of three cells each, with a header row above. Each cell shimmers — the canonical placeholder for data tables and dashboards.

Pure CSS MIT licensed

Table Rows the 8th 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-table">
  <div class="sk-table-row sk-table-head">
    <div class="sk-table-cell"></div>
    <div class="sk-table-cell"></div>
    <div class="sk-table-cell"></div>
  </div>
  <div class="sk-table-row">
    <div class="sk-table-cell"></div>
    <div class="sk-table-cell"></div>
    <div class="sk-table-cell"></div>
  </div>
  <div class="sk-table-row">
    <div class="sk-table-cell"></div>
    <div class="sk-table-cell"></div>
    <div class="sk-table-cell"></div>
  </div>
  <div class="sk-table-row">
    <div class="sk-table-cell"></div>
    <div class="sk-table-cell"></div>
    <div class="sk-table-cell"></div>
  </div>
</div>
.sk-table {
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sk-table-row {
  display: grid;
  gap: 6px;
  grid-template-columns: 1.5fr 1fr 1fr;
}
.sk-table-cell {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1f1f28 0%, #2a2a36 50%, #1f1f28 100%);
  background-size: 200% 100%;
  animation: skShimmer 1.5s linear infinite;
}
.sk-table-head .sk-table-cell {
  background: linear-gradient(90deg, #2a2a36 0%, #353543 50%, #2a2a36 100%);
  background-size: 200% 100%;
  height: 14px;
}
@keyframes skShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

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

Search CodeFronts

Loading…