body { margin: 0; min-height: 100vh; display: grid; place-items: center; background: #fbfaf7; }
.post { display: flex; gap: 16px; width: 360px; padding: 20px; border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .08); }
.lines { flex: 1; display: grid; gap: 10px; align-content: center; }
.sk { border-radius: 8px; background: linear-gradient(100deg, #ecebe6 40%, #f8f7f3 50%, #ecebe6 60%) fixed; background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.line { height: 12px; } .w60 { width: 60%; } .w80 { width: 80%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }Usage
Add `.sk` to any block. The sweep uses `background-attachment: fixed` so every bar shares one gradient.