Skip to content
Added 13 Aug 2026
Back to library
ocean-expandable-table-9543
Ocean Expandable Table
Tables & Data Grids

Ocean Expandable Table

Detail row spanning the full width with `colspan`, keyed by an accent rule so the child reads as belonging to the row above it.

Tables & Data Gridstableexpandabledetail rowinvoicedataocean
lines of CSS
48lines of CSS
dependencies
0dependencies
browser, for years
Everybrowser, for years
no motion at all
Noneno motion at all
Backdrop
InvoiceStatusAmount
INV-2041Paid$1,280
Card ending 4242 · charged 12 Mar
INV-2042Due$960
Open a live copy in

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

ocean-expandable-table-9543.css
.fx-v6-table-expand-ocean-9542 {
  width: 300px;
  border-collapse: collapse;
  font-size: 0.76rem;
  border-radius: 0.55rem;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 0 0 1px #1f2937;
}
.fx-v6-table-expand-ocean-9542 th {
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  background: #0f172a;
  border-bottom: 1px solid #1f2937;
}
.fx-v6-table-expand-ocean-9542 td {
  padding: 0.6rem 0.75rem;
  color: #cbd5e1;
  border-bottom: 1px solid #1f2937;
}
.fx-v6-table-expand-ocean-9542 tbody tr:not(.sub):hover td {
  background: rgba(14,165,233, 0.07);
}
.fx-v6-table-expand-ocean-9542 .sub td {
  padding: 0.45rem 0.75rem 0.55rem 1.5rem;
  font-size: 0.7rem;
  color: #64748b;
  background: #0d1424;
  border-left: 2px solid #0ea5e9;
}
.fx-v6-table-expand-ocean-9542 em {
  font-style: normal;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  color: #94a3b8;
  background: #1e293b;
}
.fx-v6-table-expand-ocean-9542 .ok {
  color: #0b1120;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
}
ocean-expandable-table-9543.html
<table class="fx-v6-table-expand-ocean-9542">
  <thead>
    <tr>
      <th>Invoice</th>
      <th>Status</th>
      <th>Amount</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>INV-2041</td>
      <td>
        <em class="ok">Paid</em>
      </td>
      <td>$1,280</td>
    </tr>
    <tr class="sub">
      <td colspan="3">Card ending 4242 · charged 12 Mar</td>
    </tr>
    <tr>
      <td>INV-2042</td>
      <td>
        <em>Due</em>
      </td>
      <td>$960</td>
    </tr>
  </tbody>
</table>

What do I do with this?

  1. Put ocean-expandable-table-9543.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-v6-table-expand-ocean-9542">. 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-expandable-table-9543

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-expandable-table-9543

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
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

33 more effects in Tables & Data Grids

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 Tables & Data Grids

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 Expandable Table

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