Skip to content

Time Picker Wheel

A copy-paste calendars & date pickers component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Calendars & Date PickersHTMLCSSany framework
0910111213
:
2829303132

Copy into your project

HTML
<div class="nuda-time-wheel">
  <div class="nuda-time-wheel__col">
    <span>09</span>
    <span>10</span>
    <span class="is-center">11</span>
    <span>12</span>
    <span>13</span>
  </div>
  <span class="nuda-time-wheel__sep">:</span>
  <div class="nuda-time-wheel__col">
    <span>28</span>
    <span>29</span>
    <span class="is-center">30</span>
    <span>31</span>
    <span>32</span>
  </div>
</div>
CSS
.nuda-time-wheel {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
}

.nuda-time-wheel::before {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 30px;
  transform: translateY(-50%);
  background: rgba(228,255,84,.08);
  border: 1px solid rgba(228,255,84,.2);
  border-radius: 7px;
  pointer-events: none;
}

.nuda-time-wheel__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 130px;
  overflow: hidden;
  width: 34px;
  font-size: 14px;
  color: #63636e;
  mask-image: linear-gradient(180deg,transparent,#000 30%,#000 70%,transparent);
  -webkit-mask-image: linear-gradient(180deg,transparent,#000 30%,#000 70%,transparent);
}

.nuda-time-wheel__col span {
  flex-shrink: 0;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .25s,transform .35s,font-size .25s,font-weight .25s;
}

.nuda-time-wheel__col span.is-center {
  color: #e4ff54;
  font-weight: 700;
  font-size: 16px;
  transform: scale(1.05);
}

.nuda-time-wheel__sep {
  color: #fafafa;
  font-size: 16px;
  font-weight: 600;
  animation: _blink 1.2s ease-in-out infinite;
}

@keyframes _blink {
  0%,100% {
    opacity: 1;
  }
  50% {
    opacity: .4;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-time-wheel__sep {
    animation: none;
  }
}

How to use Time Picker Wheel

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More calendars & date pickers components

← Browse all NudaUI components