Ocean Scroll Shadows
Overflow cue as a tinted shadow at whichever edge still has content past it, which survives a patterned backdrop where a fade-to-transparent mask would not.
- lines of CSS
- 53lines of CSS
- dependencies
- 0dependencies
- baseline browsers
- Newlybaseline browsers
- motion only on interaction
- Hovermotion only on interaction
Vue, Svelte, styled-components and Tailwind exports are part of Pro. HTML, CSS and React are free forever.
.fx-v10-scroll-shadow-ocean-14650 {
position: relative;
width: 200px;
height: 142px;
border-radius: 0.55rem;
background: #0f172a;
border: 1px solid #1e293b;
overflow: hidden;
}
.fx-v10-scroll-shadow-ocean-14650 .ls {
height: 100%;
overflow-y: auto;
padding: 0.35rem 0;
scrollbar-width: thin;
scrollbar-color: #3b82f6 transparent;
}
.fx-v10-scroll-shadow-ocean-14650 .ls::-webkit-scrollbar { width: 5px; }
.fx-v10-scroll-shadow-ocean-14650 .ls::-webkit-scrollbar-thumb {
border-radius: 3px;
background: #3b82f6;
}
.fx-v10-scroll-shadow-ocean-14650 .ls span {
display: block;
padding: 0.42rem 0.7rem;
font-size: 0.76rem;
color: #cbd5e1;
cursor: pointer;
transition: background 0.14s ease;
}
.fx-v10-scroll-shadow-ocean-14650 .ls span:hover { background: #182338; }
.fx-v10-scroll-shadow-ocean-14650 .sh {
position: absolute;
left: 0;
right: 5px;
height: 22px;
z-index: 1;
pointer-events: none;
transition: opacity 0.3s ease;
}
.fx-v10-scroll-shadow-ocean-14650 .top {
top: 0;
background: linear-gradient(180deg, rgba(15,23,42,0.98), transparent);
box-shadow: inset 0 4px 8px -4px rgba(6,182,212, 0.5);
opacity: 0;
}
.fx-v10-scroll-shadow-ocean-14650 .bot {
bottom: 0;
background: linear-gradient(0deg, rgba(15,23,42,0.98), transparent);
box-shadow: inset 0 -4px 8px -4px rgba(99,102,241, 0.5);
opacity: 1;
}
.fx-v10-scroll-shadow-ocean-14650:hover .top { opacity: 1; }
.fx-v10-scroll-shadow-ocean-14650:hover .bot { opacity: 0; }<div class="fx-v10-scroll-shadow-ocean-14650">
<i class="sh top"></i>
<div class="ls">
<span>Amsterdam</span>
<span>Berlin</span>
<span>Copenhagen</span>
<span>Dublin</span>
<span>Edinburgh</span>
<span>Faro</span>
<span>Geneva</span>
</div>
<i class="sh bot"></i>
</div>What do I do with this?
- Put
ocean-scroll-shadows-14651.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-v10-scroll-shadow-ocean-14650">. 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 ocean-scroll-shadows-14651What'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 ocean-scroll-shadows-14651
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
- Brief motion, no guard
Animates briefly or on interaction. Only looping motion gets a guard in this catalog; copy the one from the Insights tab if this ships on a critical path.
- What it animates
- Repaints
Animates
background. No reflow, but the browser repaints every frame, which is fine for one element and costly across many. - 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 Ocean Scroll Shadows
Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.