Skip to content
Added 17 Aug 2026
Back to library
ocean-dial-slider-14731
Ocean Dial Slider
Sliders & Carousels

Ocean Dial Slider

Thermostat-style control where the handle is positioned by rotate-translate-counterrotate, so it rides the arc without the knob itself ever appearing to spin.

Sliders & Carouselssliderdialcircularthermostatknobocean
lines of CSS
58lines of CSS
dependencies
0dependencies
baseline browsers
Newlybaseline browsers
motion only on interaction
Hovermotion only on interaction
Backdrop
21°C
Open a live copy in

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

ocean-dial-slider-14731.css
.fx-v10-slider-dial-ocean-14730 {
  position: relative;
  display: grid;
  place-items: center;
  width: 152px;
  height: 152px;
}
.fx-v10-slider-dial-ocean-14730 .tr,
.fx-v10-slider-dial-ocean-14730 .fl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.fx-v10-slider-dial-ocean-14730 .tr {
  background: conic-gradient(from 150deg, #1e293b 0deg 240deg, transparent 240deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
}
.fx-v10-slider-dial-ocean-14730 .fl {
  background: conic-gradient(from 150deg, #06b6d4 0deg, #3b82f6 90deg, #6366f1 156deg, transparent 156deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px));
  filter: drop-shadow(0 0 8px rgba(59,130,246, 0.5));
  transition: background 0.4s ease;
}
.fx-v10-slider-dial-ocean-14730 .kn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.55);
  cursor: grab;
  transform: rotate(126deg) translate(65px) rotate(-126deg);
  transition: transform 0.4s cubic-bezier(0.5, 0, 0.2, 1);
}
.fx-v10-slider-dial-ocean-14730:hover .kn { transform: rotate(168deg) translate(65px) rotate(-168deg); }
.fx-v10-slider-dial-ocean-14730:hover .fl {
  background: conic-gradient(from 150deg, #06b6d4 0deg, #3b82f6 110deg, #6366f1 198deg, transparent 198deg);
}
.fx-v10-slider-dial-ocean-14730 .rd {
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.fx-v10-slider-dial-ocean-14730 .rd b {
  font-size: 2rem;
  font-weight: 300;
  color: #f1f5f9;
}
.fx-v10-slider-dial-ocean-14730 .rd em {
  font-style: normal;
  font-size: 0.8rem;
  color: #64748b;
}
ocean-dial-slider-14731.html
<div class="fx-v10-slider-dial-ocean-14730">
  <i class="tr"></i>
  <i class="fl"></i>
  <i class="kn"></i>
  <div class="rd">
    <b>21</b>
    <em>°C</em>
  </div>
</div>

What do I do with this?

  1. Put ocean-dial-slider-14731.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-v10-slider-dial-ocean-14730">. 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-dial-slider-14731

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-dial-slider-14731

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. 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

29 more effects in Sliders & Carousels

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 Sliders & Carousels

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 Dial Slider

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