Search Loading
A copy-paste search & autocomplete component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Search & AutocompleteHTMLCSSany framework
Searching
Copy into your project
HTML
<div class="nuda-srchload">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="11" cy="11" r="7" />
<path d="m21 21-4.3-4.3" />
</svg>
<span class="nuda-srchload__text">Searching</span>
<span class="nuda-srchload__dots">
<span></span><span></span><span></span>
</span>
</div>CSS
.nuda-srchload {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
background: rgba(255,255,255,.02);
border: 1px solid rgba(255,255,255,.06);
border-radius: 10px;
color: #a0a0a8;
font-size: 12px;
}
.nuda-srchload svg {
width: 14px;
height: 14px;
color: #e4ff54;
animation: _srchSpin 1.2s ease-in-out infinite;
}
.nuda-srchload__dots {
display: inline-flex;
gap: 3px;
margin-left: 2px;
}
.nuda-srchload__dots span {
width: 4px;
height: 4px;
border-radius: 50%;
background: #e4ff54;
animation: _srchDot 1.4s ease-in-out infinite;
}
.nuda-srchload__dots span:nth-child(2) {
animation-delay: .18s;
}
.nuda-srchload__dots span:nth-child(3) {
animation-delay: .36s;
}
@keyframes _srchSpin {
0%,100% {
transform: rotate(0);
}
50% {
transform: rotate(-20deg);
}
}
@keyframes _srchDot {
0%,80%,100% {
opacity: .3;
transform: translateY(0);
}
40% {
opacity: 1;
transform: translateY(-3px);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-srchload svg,.nuda-srchload__dots span {
animation: none;
}
}
How to use Search Loading
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.