Skip to content

Scroll Indicator

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

Hero SectionsHTMLCSSany framework
Scroll

Copy into your project

HTML
<!-- Scroll Indicator — typically sits at the bottom of a hero section -->
<div class="nuda-scrind">
  <span class="nuda-scrind__label">Scroll</span>
  <div class="nuda-scrind__mouse">
    <span class="nuda-scrind__wheel"></span>
  </div>
  <svg class="nuda-scrind__chev" viewBox="0 0 12 12" fill="none"
       stroke="currentColor" stroke-width="2"
       stroke-linecap="round" stroke-linejoin="round">
    <path d="M3 4.5 L6 7.5 L9 4.5" />
  </svg>
</div>
CSS
/* Scroll Indicator
   Tiny "mouse" with a wheel that scrolls; whole thing bobs.
   Customize: --si-accent */

.nuda-scrind {
  --si-accent: #e4ff54;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  animation: nuda-si-bob 2s ease-in-out infinite;
}

.nuda-scrind__label {
  font: 700 0.625rem ui-sans-serif, system-ui, sans-serif;
  color: #63636e;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nuda-scrind__mouse {
  position: relative;
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.nuda-scrind__wheel {
  width: 2px;
  height: 6px;
  background: var(--si-accent);
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(228, 255, 84, 0.5);
  animation: nuda-si-wheel 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.nuda-scrind__chev {
  width: 12px;
  height: 12px;
  color: #63636e;
}

@keyframes nuda-si-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

@keyframes nuda-si-wheel {
  0%   { transform: translateY(0);    opacity: 1; }
  50%  { transform: translateY(10px); opacity: 0.4; }
  100% { transform: translateY(0);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .nuda-scrind,
  .nuda-scrind__wheel { animation: none; }
}

How to use Scroll 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 hero sections components

← Browse all NudaUI components