Sticky Stack Hint
A copy-paste scroll effects component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Scroll EffectsHTMLCSSany framework
03Third
02Second
01First — stickypinned
Copy into your project
HTML
<div class="nuda-scx-sticky-stack">
<div class="nuda-scx-sticky-stack__card nuda-scx-sticky-stack__card--c">
<span class="nuda-scx-sticky-stack__num">03</span>
<span class="nuda-scx-sticky-stack__title">Third</span>
</div>
<div class="nuda-scx-sticky-stack__card nuda-scx-sticky-stack__card--b">
<span class="nuda-scx-sticky-stack__num">02</span>
<span class="nuda-scx-sticky-stack__title">Second</span>
</div>
<div class="nuda-scx-sticky-stack__card nuda-scx-sticky-stack__card--a">
<span class="nuda-scx-sticky-stack__num">01</span>
<span class="nuda-scx-sticky-stack__title">First — sticky</span>
<span class="nuda-scx-sticky-stack__badge">pinned</span>
</div>
</div>CSS
.nuda-scx-sticky-stack {
position: relative;
width: 100%;
max-width: 240px;
margin: 0 auto;
height: 130px;
}
.nuda-scx-sticky-stack__card {
position: absolute;
left: 0;
right: 0;
border-radius: 10px;
padding: .6rem .9rem;
display: flex;
align-items: center;
gap: .6rem;
border: 1px solid rgba(255,255,255,.08);
}
.nuda-scx-sticky-stack__card--a {
bottom: 0;
background: #1e1e1e;
z-index: 3;
box-shadow: 0 0 0 1px rgba(228,255,84,.25);
}
.nuda-scx-sticky-stack__card--b {
bottom: 22px;
background: #181818;
z-index: 2;
transform: scale(.96);
opacity: .7;
}
.nuda-scx-sticky-stack__card--c {
bottom: 40px;
background: #141414;
z-index: 1;
transform: scale(.92);
opacity: .4;
}
.nuda-scx-sticky-stack__num {
color: #e4ff54;
font-size: .65rem;
font-weight: 700;
font-variant-numeric: tabular-nums;
min-width: 18px;
}
.nuda-scx-sticky-stack__title {
color: #cfcfcf;
font-size: .78rem;
flex: 1;
}
.nuda-scx-sticky-stack__badge {
background: rgba(228,255,84,.12);
color: #e4ff54;
font-size: .6rem;
font-weight: 600;
padding: .1rem .4rem;
border-radius: 4px;
letter-spacing: .05em;
}
How to use Sticky Stack Hint
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.