Ocean Candlestick Chart
OHLC bars where each candle's wick and body come from custom properties on the element, so the data lives in the markup and the CSS stays one rule.
- lines of CSS
- 38lines of CSS
- dependencies
- 0dependencies
- browser, for years
- Everybrowser, for years
- no motion at all
- Noneno motion at all
Vue, Svelte, styled-components and Tailwind exports are part of Pro. HTML, CSS and React are free forever.
.fx-v8-chart-candle-ocean-12022 {
display: flex;
align-items: stretch;
gap: 7px;
width: 282px;
height: 128px;
padding: 0.85rem;
border-radius: 0.6rem;
background: #0d1424;
border: 1px solid #1f2937;
}
.fx-v8-chart-candle-ocean-12022 i {
position: relative;
flex: 1;
}
.fx-v8-chart-candle-ocean-12022 i::before {
content: '';
position: absolute;
left: 50%;
top: var(--t);
bottom: var(--b);
width: 1px;
margin-left: -0.5px;
background: currentColor;
opacity: 0.7;
}
.fx-v8-chart-candle-ocean-12022 i::after {
content: '';
position: absolute;
left: 0;
right: 0;
top: calc(var(--t) + 6%);
height: var(--h);
border-radius: 1px;
background: currentColor;
}
.fx-v8-chart-candle-ocean-12022 .up { color: #0ea5e9; }
.fx-v8-chart-candle-ocean-12022 .dn { color: #6366f1; opacity: 0.75; }<div class="fx-v8-chart-candle-ocean-12022">
<i class="up" style="--t:12%;--h:34%;--b:22%"></i>
<i class="dn" style="--t:6%;--h:28%;--b:38%"></i>
<i class="up" style="--t:22%;--h:40%;--b:14%"></i>
<i class="up" style="--t:8%;--h:30%;--b:30%"></i>
<i class="dn" style="--t:16%;--h:36%;--b:20%"></i>
<i class="up" style="--t:4%;--h:46%;--b:26%"></i>
<i class="dn" style="--t:20%;--h:24%;--b:34%"></i>
<i class="up" style="--t:10%;--h:42%;--b:18%"></i>
</div>What do I do with this?
- Put
ocean-candlestick-chart-12023.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-chart-candle-ocean-12022">. 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-candlestick-chart-12023What'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-candlestick-chart-12023
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
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 & DataShipping 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 Candlestick Chart
Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.