Skip to content

Scroll Progress Dots

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

Scroll EffectsHTMLCSSany framework
IntroFeaturesPricingFAQCTA

Copy into your project

HTML
<div class="nuda-scx-pdots__track">
  <div class="nuda-scx-pdots__dot nuda-scx-pdots__dot--done"></div>
  <div class="nuda-scx-pdots__line nuda-scx-pdots__line--done"></div>
  <div class="nuda-scx-pdots__dot nuda-scx-pdots__dot--done"></div>
  <div class="nuda-scx-pdots__line nuda-scx-pdots__line--done"></div>
  <div class="nuda-scx-pdots__dot nuda-scx-pdots__dot--active"></div>
  <div class="nuda-scx-pdots__line"></div>
  <div class="nuda-scx-pdots__dot"></div>
  <div class="nuda-scx-pdots__line"></div>
  <div class="nuda-scx-pdots__dot"></div>
</div>
CSS
.nuda-scx-pdots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: .75rem;
}

.nuda-scx-pdots__track {
  display: flex;
  align-items: center;
  gap: 0;
}

.nuda-scx-pdots__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2a2a;
  border: 2px solid rgba(255,255,255,.12);
  transition: all .3s;
}

.nuda-scx-pdots__dot--done {
  background: #e4ff54;
  border-color: #e4ff54;
}

.nuda-scx-pdots__dot--active {
  background: #141414;
  border-color: #e4ff54;
  box-shadow: 0 0 0 3px rgba(228,255,84,.2);
  animation: _nuda-scxDotPulse 1.8s ease-in-out infinite;
}

.nuda-scx-pdots__line {
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,.1);
}

.nuda-scx-pdots__line--done {
  background: #e4ff54;
}

.nuda-scx-pdots__labels {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nuda-scx-pdots__labels span {
  color: #555;
  font-size: .6rem;
  white-space: nowrap;
}

.nuda-scx-pdots__labels--cur {
  color: #e4ff54 !important;
  font-weight: 600;
}

@keyframes _nuda-scxDotPulse {
  0%,100% {
    box-shadow: 0 0 0 3px rgba(228,255,84,.2);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(228,255,84,.05);
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-scx-pdots__dot--active {
    animation: none;
  }
}

How to use Scroll Progress Dots

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 scroll effects components

← Browse all NudaUI components