Ocean Side Drawer
Panel sliding in over a blurred scrim on a decelerating curve, so it settles rather than stopping dead at the edge.
- lines of CSS
- 88lines of CSS
- dependencies
- 0dependencies
- baseline browsers
- Newlybaseline browsers
- stops under reduced motion
- Guardedstops under reduced motion
Vue, Svelte, styled-components and Tailwind exports are part of Pro. HTML, CSS and React are free forever.
.fx-v6-modal-drawer-ocean-9182 {
position: relative;
width: 300px;
height: 190px;
overflow: hidden;
border-radius: 0.65rem;
background: #0f172a;
}
.fx-v6-modal-drawer-ocean-9182 .scrim {
position: absolute;
inset: 0;
background: rgba(2,6,23,0.6);
backdrop-filter: blur(2px);
}
.fx-v6-modal-drawer-ocean-9182 aside {
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 178px;
padding: 0.8rem;
background: #111827;
border-left: 1px solid rgba(14,165,233, 0.35);
box-shadow: -18px 0 40px rgba(0,0,0,0.5);
animation: fx-v6-modal-drawer-ocean-9182-slide 3.4s cubic-bezier(0.32, 0.72, 0, 1) infinite;
}
.fx-v6-modal-drawer-ocean-9182 header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.8rem;
}
.fx-v6-modal-drawer-ocean-9182 header b {
font-size: 0.85rem;
color: #f1f5f9;
}
.fx-v6-modal-drawer-ocean-9182 header button {
width: 20px;
height: 20px;
display: grid;
place-items: center;
border: none;
border-radius: 0.25rem;
background: #1e293b;
color: #94a3b8;
cursor: pointer;
line-height: 1;
}
.fx-v6-modal-drawer-ocean-9182 aside i {
display: block;
height: 9px;
margin-bottom: 0.55rem;
border-radius: 999px;
background: #1e293b;
}
.fx-v6-modal-drawer-ocean-9182 aside .s { width: 55%; }
.fx-v6-modal-drawer-ocean-9182 .cta {
width: 100%;
margin-top: 0.6rem;
padding: 0.45rem;
border: none;
border-radius: 0.4rem;
font-size: 0.78rem;
font-weight: 600;
color: #0b1120;
cursor: pointer;
background: linear-gradient(90deg, #0ea5e9, #6366f1);
}
@keyframes fx-v6-modal-drawer-ocean-9182-slide {
0%, 8% { transform: translateX(100%); }
30%, 82% { transform: translateX(0); }
100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
.fx-v6-modal-drawer-ocean-9182,
.fx-v6-modal-drawer-ocean-9182::before,
.fx-v6-modal-drawer-ocean-9182::after,
.fx-v6-modal-drawer-ocean-9182 *,
.fx-v6-modal-drawer-ocean-9182 *::before,
.fx-v6-modal-drawer-ocean-9182 *::after {
animation-duration: 1ms !important;
animation-iteration-count: 1 !important;
animation-delay: 0ms !important;
transition-duration: 1ms !important;
transition-delay: 0ms !important;
}
}<div class="fx-v6-modal-drawer-ocean-9182">
<div class="scrim"></div>
<aside>
<header>
<b>Filters</b>
<button aria-label="Close">×</button>
</header>
<i></i>
<i></i>
<i class="s"></i>
<button class="cta">Apply</button>
</aside>
</div>What do I do with this?
- Put
ocean-side-drawer-9183.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-v6-modal-drawer-ocean-9182">. 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-side-drawer-9183What'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-side-drawer-9183
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
- Guarded
Ships a
prefers-reduced-motionblock, so the loop settles into its end state for visitors who ask for less motion. - What it animates
- Compositor only
Only
transform,opacityorfilter: the GPU can run it without re-laying-out or repainting the page. - 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 Modals & Overlays
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 Modals & OverlaysShipping 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 Side Drawer
Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.