Momentum Scroll Indicator
A copy-paste mobile patterns component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Mobile PatternsHTMLCSSany framework
Copy into your project
HTML
<div class="nuda-momscroll">
<div class="nuda-momscroll__list">
<div class="nuda-momscroll__row"></div>
<div class="nuda-momscroll__row"></div>
<div class="nuda-momscroll__row"></div>
<div class="nuda-momscroll__row"></div>
<div class="nuda-momscroll__row"></div>
</div>
<div class="nuda-momscroll__track" aria-hidden="true">
<div class="nuda-momscroll__thumb"></div>
</div>
</div>CSS
/* Momentum Scroll Indicator
Thin scrollbar that decays into place like iOS.
Customize: --mom-accent */
.nuda-momscroll {
--mom-accent: #e4ff54;
position: relative;
width: 280px;
height: 200px;
padding: 14px;
background: #0c0c10;
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.06);
overflow: hidden;
}
.nuda-momscroll__list {
display: flex;
flex-direction: column;
gap: 8px;
}
.nuda-momscroll__row {
height: 28px;
border-radius: 8px;
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0.06),
rgba(255, 255, 255, 0.02)
);
border: 1px solid rgba(255, 255, 255, 0.05);
}
.nuda-momscroll__track {
position: absolute;
top: 14px;
right: 6px;
width: 3px;
height: calc(100% - 28px);
background: rgba(255, 255, 255, 0.04);
border-radius: 2px;
overflow: hidden;
}
.nuda-momscroll__thumb {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 38%;
background: linear-gradient(180deg, var(--mom-accent), #9ec700);
border-radius: 2px;
animation: nuda-mom-decay 2.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes nuda-mom-decay {
0% { transform: translateY(0); }
55% { transform: translateY(165%); }
80%, 100% { transform: translateY(160%); }
}
@media (prefers-reduced-motion: reduce) {
.nuda-momscroll__thumb {
animation: none;
transform: translateY(160%);
}
}How to use Momentum 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.