Ocean Download Progress
One control carrying three states in sequence — label, determinate bar, then a checkmark — so the transfer never leaves the place the user clicked to start it.
- lines of CSS
- 95lines of CSS
- dependencies
- 0dependencies
- browser, for years
- Everybrowser, for years
- stops under reduced motion
- Guardedstops under reduced motion
Vue, Svelte, styled-components and Tailwind exports are part of Pro. HTML, CSS and React are free forever.
.fx-v9-btn-download-ocean-12690 {
position: relative;
width: 158px;
height: 42px;
border: none;
border-radius: 0.5rem;
cursor: pointer;
overflow: hidden;
background: linear-gradient(135deg, #06b6d4, #3b82f6);
animation: fx-v9-btn-download-ocean-12690-run 3.6s cubic-bezier(0.5, 0, 0.2, 1) infinite;
}
@keyframes fx-v9-btn-download-ocean-12690-run {
0%, 18% { width: 158px; border-radius: 0.5rem; }
36%, 74% { width: 158px; border-radius: 0.5rem; }
92%, 100% { width: 158px; border-radius: 0.5rem; }
}
.fx-v9-btn-download-ocean-12690 .lb {
position: absolute;
inset: 0;
display: grid;
place-items: center;
font-size: 0.8rem;
font-weight: 650;
color: #0b1120;
animation: fx-v9-btn-download-ocean-12690-label 3.6s ease infinite;
}
@keyframes fx-v9-btn-download-ocean-12690-label {
0%, 16% { opacity: 1; }
24%, 76% { opacity: 0; }
88%, 100% { opacity: 0; }
}
.fx-v9-btn-download-ocean-12690 .bar {
position: absolute;
left: 12px;
right: 12px;
top: 50%;
height: 4px;
margin-top: -2px;
border-radius: 2px;
background: rgba(11,17,32,0.3);
opacity: 0;
animation: fx-v9-btn-download-ocean-12690-track 3.6s ease infinite;
}
@keyframes fx-v9-btn-download-ocean-12690-track {
0%, 18% { opacity: 0; }
26%, 72% { opacity: 1; }
80%, 100% { opacity: 0; }
}
.fx-v9-btn-download-ocean-12690 .bar::after {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
border-radius: 2px;
background: #0b1120;
animation: fx-v9-btn-download-ocean-12690-fill 3.6s cubic-bezier(0.4, 0, 0.3, 1) infinite;
}
@keyframes fx-v9-btn-download-ocean-12690-fill {
0%, 22% { width: 0%; }
70%, 100% { width: 100%; }
}
.fx-v9-btn-download-ocean-12690 .tick {
position: absolute;
left: 50%;
top: 50%;
width: 15px;
height: 8px;
margin: -6px 0 0 -8px;
border-left: 2.5px solid #0b1120;
border-bottom: 2.5px solid #0b1120;
transform: rotate(-45deg) scale(0.4);
opacity: 0;
animation: fx-v9-btn-download-ocean-12690-done 3.6s cubic-bezier(0.34, 1.5, 0.64, 1) infinite;
}
@keyframes fx-v9-btn-download-ocean-12690-done {
0%, 74% { opacity: 0; transform: rotate(-45deg) scale(0.4); }
84%, 96% { opacity: 1; transform: rotate(-45deg) scale(1); }
100% { opacity: 0; transform: rotate(-45deg) scale(0.4); }
}
@media (prefers-reduced-motion: reduce) {
.fx-v9-btn-download-ocean-12690,
.fx-v9-btn-download-ocean-12690::before,
.fx-v9-btn-download-ocean-12690::after,
.fx-v9-btn-download-ocean-12690 *,
.fx-v9-btn-download-ocean-12690 *::before,
.fx-v9-btn-download-ocean-12690 *::after {
animation-duration: 1ms !important;
animation-iteration-count: 1 !important;
animation-delay: 0ms !important;
transition-duration: 1ms !important;
transition-delay: 0ms !important;
}
}<button class="fx-v9-btn-download-ocean-12690">
<span class="lb">Download</span>
<i class="bar"></i>
<i class="tick"></i>
</button>What do I do with this?
- Put
ocean-download-progress-12691.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-btn-download-ocean-12690">. 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-download-progress-12691What'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-download-progress-12691
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
- Reflows
Animates
width(andborder-radius). The browser re-lays-out the page on every frame; prefertransformif you can. - Flashing (WCAG 2.3.1)
- Under 3 flashes/s
Its brightest loop is about 0.3 a second. Estimated from duration, iterations and keyframes, not from rendered frames.
- Layout shift (CLS)
- May shift layout
Animates
widthon a box in flow, so content beside or after it can move. 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
62 more effects in Buttons
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 ButtonsShipping 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 Download Progress
Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.