Skip to content
Added 13 Aug 2026
Back to library
ocean-fullscreen-takeover-13183
Ocean Fullscreen Takeover
Modals & Overlays

Ocean Fullscreen Takeover

Dialog that grows from the footprint of the control that opened it to the whole viewport, its chrome fading in only after the box has finished travelling.

Modals & Overlaysmodaltakeoverfullscreenexpandtransitionocean
lines of CSS
89lines of CSS
dependencies
0dependencies
browser, for years
Everybrowser, for years
motion only on interaction
Hovermotion only on interaction
Backdrop
Compose
Open a live copy in

Vue, Svelte, styled-components and Tailwind exports are part of Pro. HTML, CSS and React are free forever.

ocean-fullscreen-takeover-13183.css
.fx-v9-modal-takeover-ocean-13182 {
  position: relative;
  width: 240px;
  height: 156px;
  overflow: hidden;
  border-radius: 0.6rem;
  background: #0b1120;
  border: 1px solid #1e293b;
}
.fx-v9-modal-takeover-ocean-13182 .pg {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  transition: filter 0.4s ease, transform 0.4s ease;
}
.fx-v9-modal-takeover-ocean-13182 .rw {
  height: 9px;
  border-radius: 3px;
  background: #1e293b;
}
.fx-v9-modal-takeover-ocean-13182 .rw.s { width: 62%; }
.fx-v9-modal-takeover-ocean-13182:hover .pg { filter: blur(2px); transform: scale(0.97); }
.fx-v9-modal-takeover-ocean-13182 .sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 34px;
  margin: -17px 0 0 -48px;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #111827;
  box-shadow: 0 0 0 1px rgba(99,102,241, 0.5), 0 18px 40px rgba(0,0,0,0.55);
  transition: width 0.44s cubic-bezier(0.5, 0, 0.2, 1),
              height 0.44s cubic-bezier(0.5, 0, 0.2, 1),
              margin 0.44s cubic-bezier(0.5, 0, 0.2, 1),
              border-radius 0.44s ease;
}
.fx-v9-modal-takeover-ocean-13182:hover .sheet {
  width: 240px;
  height: 156px;
  margin: -78px 0 0 -120px;
  border-radius: 0.6rem;
}
.fx-v9-modal-takeover-ocean-13182 .hd {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #1f2937;
  opacity: 0;
  transition: opacity 0.24s ease 0.24s;
}
.fx-v9-modal-takeover-ocean-13182:hover .hd { opacity: 1; }
.fx-v9-modal-takeover-ocean-13182 .hd b { font-size: 0.76rem; font-weight: 650; color: #f1f5f9; }
.fx-v9-modal-takeover-ocean-13182 .hd .x {
  position: relative;
  width: 14px;
  height: 14px;
  margin-left: auto;
}
.fx-v9-modal-takeover-ocean-13182 .hd .x::before,
.fx-v9-modal-takeover-ocean-13182 .hd .x::after {
  content: '';
  position: absolute;
  left: 1px;
  top: 6px;
  width: 12px;
  height: 1.6px;
  background: #64748b;
}
.fx-v9-modal-takeover-ocean-13182 .hd .x::before { transform: rotate(45deg); }
.fx-v9-modal-takeover-ocean-13182 .hd .x::after  { transform: rotate(-45deg); }
.fx-v9-modal-takeover-ocean-13182 .bd {
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem 0.6rem;
  opacity: 0;
  transition: opacity 0.24s ease 0.3s;
}
.fx-v9-modal-takeover-ocean-13182:hover .bd { opacity: 1; }
.fx-v9-modal-takeover-ocean-13182 .bd span {
  height: 8px;
  border-radius: 3px;
  background: #1e293b;
}
.fx-v9-modal-takeover-ocean-13182 .bd .sh {
  width: 44%;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
}
ocean-fullscreen-takeover-13183.html
<div class="fx-v9-modal-takeover-ocean-13182">
  <div class="pg">
    <span class="rw"></span>
    <span class="rw s"></span>
    <span class="rw"></span>
  </div>
  <div class="sheet">
    <div class="hd">
      <b>Compose</b>
      <i class="x"></i>
    </div>
    <div class="bd">
      <span></span>
      <span></span>
      <span class="sh"></span>
    </div>
  </div>
</div>

What do I do with this?

  1. Put ocean-fullscreen-takeover-13183.css anywhere your page already loads CSS from — in Next.js that is app/globals.css, or any stylesheet with a <link> in your HTML.
  2. Then put the class on the element you want it on: <button class="fx-v9-modal-takeover-ocean-13182">. 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-fullscreen-takeover-13183

What'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-fullscreen-takeover-13183

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.

Was this useful?

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
Reflows

Animates height, margin, width (and border-radius). The browser re-lays-out the page on every frame; prefer transform if you can.

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)
May shift layout

Animates height, margin, width on a box in flow, so content beside or after it can move. 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 & Overlays

Shipping 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
Pro — $79 once

7 variations of Ocean Fullscreen Takeover

Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.