Sticky Aside
Order summary pinned to the top of its column while the list beside it scrolls past, staying in reach the whole way down.
- lines of CSS
- 46lines of CSS
- dependencies
- 0dependencies
- browser, for years
- Everybrowser, for years
- 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-aside-15626 {
display: flex;
gap: 10px;
align-items: flex-start;
width: 258px;
height: 150px;
padding: 0 2px;
overflow-y: auto;
background: #0f1626;
border: 1px solid #253049;
border-radius: 0.5rem;
}
.fx-v13-sc-aside-15626 .col { flex: 1; display: grid; gap: 8px; padding: 8px 0 8px 8px; }
.fx-v13-sc-aside-15626 .col p {
margin: 0;
height: 34px;
border-radius: 0.35rem;
background: #1a2437;
}
.fx-v13-sc-aside-15626 aside {
position: sticky;
top: 8px;
flex: none;
width: 96px;
margin: 8px 8px 8px 0;
padding: 0.55rem 0.6rem 0.65rem;
background: #16203a;
border: 1px solid #2c3a58;
border-radius: 0.45rem;
}
.fx-v13-sc-aside-15626 b { display: block; font-size: 0.66rem; color: #f1f5f9; }
.fx-v13-sc-aside-15626 span { display: block; font-size: 0.6rem; color: #64748b; }
.fx-v13-sc-aside-15626 em { display: block; margin-top: 0.3rem; font-style: normal; font-size: 0.86rem; font-weight: 700; color: #7dd3fc; }
.fx-v13-sc-aside-15626 u {
display: block;
margin-top: 0.45rem;
padding: 0.22rem 0;
text-align: center;
text-decoration: none;
font-size: 0.62rem;
font-weight: 600;
color: #0b1020;
background: #38bdf8;
border-radius: 0.3rem;
cursor: pointer;
}<div class="fx-v13-sc-aside-15626">
<div class="col">
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
</div>
<aside>
<b>In this order</b>
<span>3 items</span>
<em>£116.40</em>
<u>Checkout</u>
</aside>
</div>What do I do with this?
- Put
sticky-aside-15627.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-aside-15626">. 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 sticky-aside-15627What'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 sticky-aside-15627
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 Sticky Aside
Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.