12 CSS Skeleton Loaders

Chip Cluster

Pill-shaped chips of varying widths shimmer in a flex-wrap layout — the right placeholder for tag filters, category lists, and search facets.

Pure CSS MIT licensed

Chip Cluster the 12th 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-chips">
  <div class="sk-chip" style="width: 56px"></div>
  <div class="sk-chip" style="width: 80px"></div>
  <div class="sk-chip" style="width: 48px"></div>
  <div class="sk-chip" style="width: 72px"></div>
  <div class="sk-chip" style="width: 60px"></div>
  <div class="sk-chip" style="width: 90px"></div>
  <div class="sk-chip" style="width: 50px"></div>
</div>
.sk-chips {
  width: 220px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sk-chip {
  height: 22px;
  border-radius: 11px;
  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-chips,
  .sk-chips * {
    animation: none !important;
  }
}

Search CodeFronts

Loading…