Skip to content
Added 30 Aug 2026
Back to library
flow-sankey-15505
Flow Sankey
Charts & Data

Flow Sankey

Two source bands feeding three destinations through tapered gradient ribbons, the others dimming as one flow is hovered.

Charts & Datasankeyflowribbonallocationclip-path
lines of CSS
40lines 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.

flow-sankey-15505.css
.fx-v13-ch-sankey-15504 {
  display: flex;
  align-items: stretch;
  width: 224px;
  height: 118px;
}
.fx-v13-ch-sankey-15504 .l, .fx-v13-ch-sankey-15504 .r { display: flex; flex-direction: column; gap: 6px; width: 12px; }
.fx-v13-ch-sankey-15504 .l i, .fx-v13-ch-sankey-15504 .r i { border-radius: 2px; }
.fx-v13-ch-sankey-15504 .a { flex: 6; background: #38bdf8; }
.fx-v13-ch-sankey-15504 .b { flex: 4; background: #a78bfa; }
.fx-v13-ch-sankey-15504 .d { flex: 4; background: #34d399; }
.fx-v13-ch-sankey-15504 .e { flex: 3; background: #fbbf24; }
.fx-v13-ch-sankey-15504 .g { flex: 3; background: #f472b6; }
.fx-v13-ch-sankey-15504 .f { position: relative; flex: 1; }
.fx-v13-ch-sankey-15504 .f span {
  position: absolute;
  left: 0;
  right: 0;
  transition: opacity 0.25s ease;
}
.fx-v13-ch-sankey-15504 .f1 {
  top: 4%;
  height: 34%;
  background: linear-gradient(90deg, rgba(56,189,248,0.55), rgba(52,211,153,0.55));
  clip-path: polygon(0 0, 100% 18%, 100% 100%, 0 100%);
}
.fx-v13-ch-sankey-15504 .f2 {
  top: 38%;
  height: 26%;
  background: linear-gradient(90deg, rgba(56,189,248,0.45), rgba(251,191,36,0.5));
  clip-path: polygon(0 0, 100% 6%, 100% 96%, 0 100%);
}
.fx-v13-ch-sankey-15504 .f3 {
  top: 62%;
  height: 34%;
  background: linear-gradient(90deg, rgba(167,139,250,0.5), rgba(244,114,182,0.5));
  clip-path: polygon(0 4%, 100% 0, 100% 92%, 0 100%);
}
.fx-v13-ch-sankey-15504:hover .f span { opacity: 0.5; }
.fx-v13-ch-sankey-15504 .f span:hover { opacity: 1; }
flow-sankey-15505.html
<div class="fx-v13-ch-sankey-15504">
  <div class="l">
    <i class="a"></i>
    <i class="b"></i>
  </div>
  <div class="f">
    <span class="f1"></span>
    <span class="f2"></span>
    <span class="f3"></span>
  </div>
  <div class="r">
    <i class="d"></i>
    <i class="e"></i>
    <i class="g"></i>
  </div>
</div>

What do I do with this?

  1. Put flow-sankey-15505.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-v13-ch-sankey-15504">. 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 flow-sankey-15505

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 flow-sankey-15505

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
Compositor only

Only transform, opacity or filter: the GPU can run it without re-laying-out or repainting the page.

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

35 more effects in Charts & Data

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 Charts & Data

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 Flow Sankey

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