Ocean Sparkline Table
Trend column drawn inline per row, so direction and current value sit on the same line instead of in a chart somewhere else on the page.
- lines of CSS
- 53lines of CSS
- dependencies
- 0dependencies
- browser, for years
- Everybrowser, for years
- no motion at all
- Noneno motion at all
| Metric | 7-day | Now |
|---|---|---|
| Sign-ups | 412 | |
| Churn | 0.8% | |
| MRR | $48k |
Vue, Svelte, styled-components and Tailwind exports are part of Pro. HTML, CSS and React are free forever.
.fx-v8-table-spark-ocean-12102 {
width: 292px;
border-collapse: collapse;
font-size: 0.76rem;
border-radius: 0.55rem;
overflow: hidden;
background: #111827;
box-shadow: 0 0 0 1px #1f2937;
}
.fx-v8-table-spark-ocean-12102 th {
padding: 0.55rem 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-v8-table-spark-ocean-12102 th:last-child, .fx-v8-table-spark-ocean-12102 td:last-child { text-align: right; }
.fx-v8-table-spark-ocean-12102 td {
padding: 0.5rem 0.75rem;
color: #cbd5e1;
border-bottom: 1px solid #1f2937;
font-variant-numeric: tabular-nums;
}
.fx-v8-table-spark-ocean-12102 tr:last-child td { border-bottom: none; }
.fx-v8-table-spark-ocean-12102 tbody tr:hover td { background: rgba(14,165,233, 0.06); }
.fx-v8-table-spark-ocean-12102 i {
display: flex;
align-items: flex-end;
gap: 2px;
height: 20px;
}
.fx-v8-table-spark-ocean-12102 i b {
flex: 1;
border-radius: 1px;
background: #0ea5e9;
}
.fx-v8-table-spark-ocean-12102 i b:nth-child(1) { height: 40%; }
.fx-v8-table-spark-ocean-12102 i b:nth-child(2) { height: 62%; }
.fx-v8-table-spark-ocean-12102 i b:nth-child(3) { height: 48%; }
.fx-v8-table-spark-ocean-12102 i b:nth-child(4) { height: 78%; }
.fx-v8-table-spark-ocean-12102 i b:nth-child(5) { height: 66%; }
.fx-v8-table-spark-ocean-12102 i b:nth-child(6) { height: 100%; }
.fx-v8-table-spark-ocean-12102 .dn b { background: #6366f1; opacity: 0.7; }
.fx-v8-table-spark-ocean-12102 .dn b:nth-child(1) { height: 100%; }
.fx-v8-table-spark-ocean-12102 .dn b:nth-child(2) { height: 82%; }
.fx-v8-table-spark-ocean-12102 .dn b:nth-child(3) { height: 88%; }
.fx-v8-table-spark-ocean-12102 .dn b:nth-child(4) { height: 60%; }
.fx-v8-table-spark-ocean-12102 .dn b:nth-child(5) { height: 52%; }
.fx-v8-table-spark-ocean-12102 .dn b:nth-child(6) { height: 34%; }<table class="fx-v8-table-spark-ocean-12102">
<thead>
<tr>
<th>Metric</th>
<th>7-day</th>
<th>Now</th>
</tr>
</thead>
<tbody>
<tr>
<td>Sign-ups</td>
<td>
<i>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
</i>
</td>
<td>412</td>
</tr>
<tr>
<td>Churn</td>
<td>
<i class="dn">
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
</i>
</td>
<td>0.8%</td>
</tr>
<tr>
<td>MRR</td>
<td>
<i>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
</i>
</td>
<td>$48k</td>
</tr>
</tbody>
</table>What do I do with this?
- Put
ocean-sparkline-table-12103.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-v8-table-spark-ocean-12102">. 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-sparkline-table-12103What'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-sparkline-table-12103
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 Sparkline Table
Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.