Skip to content

Async Shimmer Rows

A copy-paste search & autocomplete component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Search & AutocompleteHTMLCSSany framework

Copy into your project

HTML
<div class="nuda-shimrows">
  <div class="nuda-shimrows__row" style="width:180px"></div>
  <div class="nuda-shimrows__row" style="width:140px"></div>
  <div class="nuda-shimrows__row" style="width:160px"></div>
</div>
CSS
.nuda-shimrows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  width: 100%;
  max-width: 220px;
}

.nuda-shimrows__row {
  height: 14px;
  border-radius: 5px;
  background: linear-gradient(90deg,rgba(255,255,255,.04) 0%,rgba(255,255,255,.1) 50%,rgba(255,255,255,.04) 100%);
  background-size: 200% 100%;
  animation: _shimMove 1.6s linear infinite;
}

.nuda-shimrows__row:nth-child(2) {
  animation-delay: .2s;
}

.nuda-shimrows__row:nth-child(3) {
  animation-delay: .4s;
}

@keyframes _shimMove {
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-shimrows__row {
    animation: none;
    opacity: .6;
  }
}

How to use Async Shimmer Rows

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More search & autocomplete components

← Browse all NudaUI components