Skip to content
Added 13 Aug 2026
Back to library
ocean-task-strike-13171
Ocean Task Strike
Micro-interactions

Ocean Task Strike

Checkbox and label treated as one gesture — the tick springs in, the rule draws left to right, and the text dims last so the sequence reads as completion rather than deletion.

Micro-interactionsmicrocheckboxtaskstrike-throughtodoocean
lines of CSS
59lines of CSS
dependencies
0dependencies
browser, for years
Everybrowser, for years
motion only on interaction
Hovermotion only on interaction
Backdrop
Open a live copy in

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

ocean-task-strike-13171.css
.fx-v9-micro-strike-ocean-13170 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 224px;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  background: #0f172a;
  border: 1px solid #1e293b;
  cursor: pointer;
  transition: background 0.2s ease;
}
.fx-v9-micro-strike-ocean-13170:hover { background: #131f38; }
.fx-v9-micro-strike-ocean-13170 .box {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 0.32rem;
  border: 1.6px solid #334155;
  background: transparent;
  transition: background 0.24s ease, border-color 0.24s ease;
}
.fx-v9-micro-strike-ocean-13170:hover .box {
  border-color: transparent;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}
.fx-v9-micro-strike-ocean-13170 .box b {
  width: 9px;
  height: 5px;
  border-left: 2px solid #0b1120;
  border-bottom: 2px solid #0b1120;
  transform: rotate(-45deg) scale(0);
  transform-origin: 50% 50%;
  transition: transform 0.26s cubic-bezier(0.34, 1.5, 0.64, 1) 0.06s;
}
.fx-v9-micro-strike-ocean-13170:hover .box b { transform: rotate(-45deg) scale(1); }
.fx-v9-micro-strike-ocean-13170 span {
  position: relative;
  font-size: 0.79rem;
  color: #e2e8f0;
  transition: color 0.3s ease 0.1s;
}
.fx-v9-micro-strike-ocean-13170:hover span { color: #64748b; }
.fx-v9-micro-strike-ocean-13170 .rule {
  position: absolute;
  left: 0;
  top: 50%;
  height: 1.5px;
  width: 100%;
  border-radius: 1px;
  background: #6366f1;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.32s cubic-bezier(0.5, 0, 0.2, 1) 0.08s;
}
.fx-v9-micro-strike-ocean-13170:hover .rule { transform: scaleX(1); }
ocean-task-strike-13171.html
<label class="fx-v9-micro-strike-ocean-13170">
  <i class="box">
    <b></b>
  </i>
  <span>Ship the redesign<i class="rule"></i></span>
</label>

What do I do with this?

  1. Put ocean-task-strike-13171.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-micro-strike-ocean-13170">. 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-task-strike-13171

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-task-strike-13171

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
Repaints

Animates background, border-color, color. No reflow, but the browser repaints every frame, which is fine for one element and costly across many.

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

34 more effects in Micro-interactions

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

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

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