Ocean Inline Edit Grid
Spreadsheet-style cells that outline under the pointer and drop into an editing state in place, so committing a value never costs a dialog or a round trip to a detail page.
- lines of CSS
- 69lines of CSS
- dependencies
- 0dependencies
- browser, for years
- Everybrowser, for years
- stops under reduced motion
- Guardedstops under reduced motion
| SKU | Stock | Price |
|---|---|---|
| HL-104 | 28 | $34.00 |
| HL-220 | 7 | $18.50 |
| HL-318 | 142 | $92.00 |
Vue, Svelte, styled-components and Tailwind exports are part of Pro. HTML, CSS and React are free forever.
.fx-v9-table-inline-ocean-13490 {
width: 244px;
border-collapse: separate;
border-spacing: 0;
border-radius: 0.5rem;
overflow: hidden;
background: #0b1120;
border: 1px solid #1e293b;
font-size: 0.73rem;
}
.fx-v9-table-inline-ocean-13490 th {
padding: 0.42rem 0.6rem;
text-align: left;
font-size: 0.62rem;
font-weight: 650;
letter-spacing: 0.06em;
text-transform: uppercase;
color: #64748b;
background: #0f172a;
border-bottom: 1px solid #1e293b;
}
.fx-v9-table-inline-ocean-13490 td {
padding: 0.42rem 0.6rem;
color: #cbd5e1;
border-bottom: 1px solid #131f38;
cursor: text;
transition: box-shadow 0.16s ease, background 0.16s ease;
}
.fx-v9-table-inline-ocean-13490 tr:last-child td { border-bottom: none; }
.fx-v9-table-inline-ocean-13490 th:not(:first-child),
.fx-v9-table-inline-ocean-13490 td:not(:first-child) {
text-align: right;
font-variant-numeric: tabular-nums;
}
.fx-v9-table-inline-ocean-13490 td:hover {
background: #131f38;
box-shadow: inset 0 0 0 1px #334155;
}
.fx-v9-table-inline-ocean-13490 .ed {
position: relative;
background: #0f172a;
box-shadow: inset 0 0 0 1.5px #3b82f6, 0 0 0 3px rgba(59,130,246, 0.14);
color: #f8fafc;
}
.fx-v9-table-inline-ocean-13490 .car {
display: inline-block;
width: 1.5px;
height: 12px;
margin-left: 1px;
vertical-align: -2px;
background: #6366f1;
animation: fx-v9-table-inline-ocean-13490-blink 1.1s steps(2) infinite;
}
@keyframes fx-v9-table-inline-ocean-13490-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
.fx-v9-table-inline-ocean-13490,
.fx-v9-table-inline-ocean-13490::before,
.fx-v9-table-inline-ocean-13490::after,
.fx-v9-table-inline-ocean-13490 *,
.fx-v9-table-inline-ocean-13490 *::before,
.fx-v9-table-inline-ocean-13490 *::after {
animation-duration: 1ms !important;
animation-iteration-count: 1 !important;
animation-delay: 0ms !important;
transition-duration: 1ms !important;
transition-delay: 0ms !important;
}
}<table class="fx-v9-table-inline-ocean-13490">
<thead>
<tr>
<th>SKU</th>
<th>Stock</th>
<th>Price</th>
</tr>
</thead>
<tbody>
<tr>
<td>HL-104</td>
<td>28</td>
<td class="ed">$34.00<i class="car"></i></td>
</tr>
<tr>
<td>HL-220</td>
<td>7</td>
<td>$18.50</td>
</tr>
<tr>
<td>HL-318</td>
<td>142</td>
<td>$92.00</td>
</tr>
</tbody>
</table>What do I do with this?
- Put
ocean-inline-edit-grid-13491.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-v9-table-inline-ocean-13490">. 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-inline-edit-grid-13491What'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-inline-edit-grid-13491
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
- Repaints
Animates
background,box-shadow. No reflow, but the browser repaints every frame, which is fine for one element and costly across many. - Flashing (WCAG 2.3.1)
- Under 3 flashes/s
Its brightest loop is about 0.9 a second. Estimated from duration, iterations and keyframes, not from rendered frames.
- 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 Inline Edit Grid
Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.