Rail Scroll Bar
Horizontal card rail with a slim gradient scrollbar of its own beneath it, sized to the rail rather than the page.
- lines of CSS
- 30lines of CSS
- dependencies
- 0dependencies
- baseline browsers
- Newlybaseline browsers
- no motion at all
- Noneno motion at all
Vue, Svelte, styled-components and Tailwind exports are part of Pro. HTML, CSS and React are free forever.
.fx-v13-sc-railbar-15624 {
width: 250px;
}
.fx-v13-sc-railbar-15624 .rl {
display: flex;
gap: 8px;
padding-bottom: 12px;
overflow-x: auto;
scrollbar-width: thin;
scrollbar-color: #6366f1 rgba(148,163,184,0.16);
}
.fx-v13-sc-railbar-15624 .rl::-webkit-scrollbar { height: 5px; }
.fx-v13-sc-railbar-15624 .rl::-webkit-scrollbar-track { background: rgba(148,163,184,0.16); border-radius: 3px; }
.fx-v13-sc-railbar-15624 .rl::-webkit-scrollbar-thumb {
background: linear-gradient(90deg, #6366f1, #22d3ee);
border-radius: 3px;
}
.fx-v13-sc-railbar-15624 .rl::-webkit-scrollbar-thumb:hover { filter: brightness(1.2); }
.fx-v13-sc-railbar-15624 i {
flex: none;
width: 84px;
height: 96px;
border-radius: 0.5rem;
}
.fx-v13-sc-railbar-15624 i:nth-child(1) { background: linear-gradient(150deg, #f472b6, #9d174d); }
.fx-v13-sc-railbar-15624 i:nth-child(2) { background: linear-gradient(150deg, #38bdf8, #1e3a8a); }
.fx-v13-sc-railbar-15624 i:nth-child(3) { background: linear-gradient(150deg, #34d399, #065f46); }
.fx-v13-sc-railbar-15624 i:nth-child(4) { background: linear-gradient(150deg, #fbbf24, #b45309); }
.fx-v13-sc-railbar-15624 i:nth-child(5) { background: linear-gradient(150deg, #a78bfa, #5b21b6); }
.fx-v13-sc-railbar-15624 i:nth-child(6) { background: linear-gradient(150deg, #94a3b8, #334155); }<div class="fx-v13-sc-railbar-15624">
<div class="rl">
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
</div>
</div>What do I do with this?
- Put
rail-scroll-bar-15625.cssanywhere your page already loads CSS from — in Next.js that isapp/globals.css, or any stylesheet with a<link>in your HTML. - Then put the class on the element you want it on:
<button class="fx-v13-sc-railbar-15624">. The CSS does nothing until a class name in it matches something on the page.
- Link the stylesheet, then paste the markup wherever you need it.
npx hoverlab add rail-scroll-bar-15625What's included
- The markup and the stylesheet, in whichever framework you pick
- No runtime dependencies
Works with
- React
- Vue
- Svelte
- Tailwind
- styled-components
- Plain CSS
npx hoverlab add rail-scroll-bar-15625
Or over MCP, from your editor's agent — no account needed.
License
Free to read, copy and install, for personal and non-commercial projects. Shipping it in client work or a paid product needs Pro ($79 once). The source lands in your repo and stops being ours — no attribution, nothing to upgrade.
Motion safety
Static estimate, read from the CSS
- Reduced motion
- Nothing animates
No animation or transition, so there is nothing to switch off.
- What it animates
- Nothing
No property is animated.
- Flashing (WCAG 2.3.1)
- No flashing found
No repeating change in opacity, colour or brightness large enough to count as a flash.
- Layout shift (CLS)
- No shift expected
Nothing it animates moves or resizes the box in flow. A category from the CSS, not a measurement for this effect.
Every row is read from the shipped CSS. Only a figure marked measured came from a browser. Customizing the speed changes the timing, so recheck a customized copy. How it is computed
30 more effects in Scroll & Sticky
All of them free to read, copy and install — no account, no locked tiles, no watermarked preview. The whole catalog is open, and so are the API and the CLI.
Browse Scroll & StickyShipping one commercially
Copying the code is free. Putting it in client work or a paid product is what Pro is for — the licence, not the access.
- A commercial licence for everything in the catalog
- Unlimited bundle exports, in Vue, Svelte and Tailwind
- One payment — no subscription, nothing to renew
7 variations of Rail Scroll Bar
Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.