Shimmer skeleton
Shimmer skeleton: a CSS card. Copy the rules, or the prompt that rebuilds it.
CSS
.card-050 {
width: 300px;
padding: 14px;
background: #fff;
border: 1px solid #eee;
border-radius: 14px
}
.card-050__sk {
position: relative;
overflow: hidden;
background: #eceff3;
border-radius: 8px
}
.card-050__sk::after {
content: "";
position: absolute;
inset: 0;
transform: translateX(-100%);
background: linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent);
animation: card-050-shimmer 1.4s infinite
}
.card-050__img {
height: 150px;
border-radius: 10px;
margin-bottom: 14px
}
.card-050__line {
height: 12px;
margin: 0 0 10px
}
.card-050__line:last-child {
margin-bottom: 4px
}
@keyframes card-050-shimmer {
to {
transform: translateX(100%)
}
}
@media (prefers-reduced-motion: reduce) {
.card-050, .card-050 * { animation: none; transition: none; }
}
HTML
<article class="card-050" aria-busy="true">
<div class="card-050__img card-050__sk"></div>
<div class="card-050__line card-050__sk" style="width:70%"></div>
<div class="card-050__line card-050__sk"></div>
<div class="card-050__line card-050__sk" style="width:45%"></div>
</article>Prompt
Build a 300px skeleton loading card: white, 1px #eee border, 14px radius, 14px padding. Placeholder blocks are #eceff3 with rounded corners: a 150px image block, then three 12px tall lines at 70%, 100% and 45% width. Each block has a shimmer: a 90deg gradient (transparent, white 70%, transparent) sweeping from left to right every 1.4s via translateX on a pseudo-element, clipped by overflow hidden.