HTML
<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>
CSS
.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;
}
}