Skip to content

Swipe Indicator

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

Galleries & CarouselsHTMLCSSany framework

Copy into your project

HTML
<div class="nuda-swdots">
  <span></span>
  <span class="is-on"></span>
  <span></span>
  <span></span>
  <span></span>
</div>
CSS
.nuda-swdots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition:
    width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s,
    border-radius 0.35s;
}

.nuda-swdots span.is-on {
  width: 18px;
  height: 6px;
  border-radius: 99px;
  background: #fafafa;
}

How to use Swipe Indicator

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 galleries & carousels components

← Browse all NudaUI components