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.
- lines of CSS
- 48lines of CSS
- dependencies
- 0dependencies
- browser, for years
- Everybrowser, for years
- no motion at all
- Noneno motion at all
| Invoice | Status | Amount |
|---|---|---|
| INV-2041 | Paid | $1,280 |
| Card ending 4242 · charged 12 Mar | ||
| INV-2042 | Due | $960 |
Vue, Svelte, styled-components and Tailwind exports are part of Pro. HTML, CSS and React are free forever.
.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);
}<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?
- Put
ocean-expandable-table-9543.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-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-9543What'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.
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 GridsShipping 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 Expandable Table
Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.