HTML
<div class="stage-18">
<div class="card-skel">
<div class="skel skel-avatar"></div>
<div class="skel skel-line w-3q"></div>
<div class="skel skel-line w-full"></div>
<div class="skel skel-line w-half"></div>
<div class="skel skel-gap"></div>
<div class="skel skel-line w-full"></div>
<div class="skel skel-line w-2q"></div>
<div class="skel skel-btn"></div>
</div>
</div> CSS
.card-skel {
width: 200px;
padding: 18px 20px;
border-radius: 14px;
background: var(--ccg-surface2);
border: 1px solid var(--ccg-border);
}
.skel {
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0.04) 25%,
rgba(255, 255, 255, 0.1) 50%,
rgba(255, 255, 255, 0.04) 75%
);
background-size: 200% 100%;
animation: ccg-skel-wave 1.5s infinite;
border-radius: 4px;
}
.skel-avatar {
width: 44px;
height: 44px;
border-radius: 50%;
margin-bottom: 14px;
}
.skel-line {
height: 10px;
margin-bottom: 7px;
}
.skel-line.w-full {
width: 100%;
}
.skel-line.w-3q {
width: 75%;
}
.skel-line.w-half {
width: 50%;
}
.skel-line.w-2q {
width: 40%;
}
.skel-gap {
height: 14px;
}
.skel-btn {
height: 30px;
border-radius: 6px;
margin-top: 14px;
}
/* missing class rules (merged from gallery) */
@keyframes ccg-skel-wave {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
/* parent stage backdrop (so the demo renders standalone) */
[class^="stage-"] {
width: 100%;
min-height: 200px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
padding: 2.5rem 1.5rem;
box-sizing: border-box;
}
.stage-18 {
background: #0a0a0f;
}
/* gallery vars + keyframes (so the demo renders standalone) */
:root {
--ccg-bg: #0a0a0f;
--ccg-surface: #111118;
--ccg-surface2: #17171f;
--ccg-surface3: #1e1e28;
--ccg-border: rgba(255, 255, 255, 0.15);
--ccg-border2: rgba(255, 255, 255, 0.13);
--ccg-accent: #7c6cff;
--ccg-pink: #ff6c8a;
--ccg-green: #1ed98a;
--ccg-amber: #f5a84a;
--ccg-cyan: #3de8f5;
--ccg-text: #f0eeff;
--ccg-muted: #6b6987;
--ccg-label: #9896b8;
--ccg-mono: "DM Mono", "Fira Code", monospace;
--ccg-sans: "Syne", sans-serif;
}
@media (prefers-reduced-motion: reduce) {
.card-skel,
.card-skel * {
animation: none !important;
}
}