Snap Picker Wheel
Vertical picker wheel that snaps each value into a highlighted centre band with faded edges above and below.
- lines of CSS
- 46lines of CSS
- dependencies
- 0dependencies
- baseline browsers
- Newlybaseline browsers
- 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-v12-sc-wheel-15306 {
position: relative;
display: flex;
align-items: center;
gap: 0.4rem;
width: 150px;
height: 140px;
padding: 0 1rem;
box-sizing: border-box;
border-radius: 14px;
background: #0f172a;
border: 1px solid #1e293b;
font-family: system-ui, sans-serif;
color: #e2e8f0;
}
.fx-v12-sc-wheel-15306 .win {
width: 60px;
height: 140px;
overflow-y: auto;
scroll-snap-type: y mandatory;
scrollbar-width: none;
-webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
}
.fx-v12-sc-wheel-15306 .win::-webkit-scrollbar { display: none; }
.fx-v12-sc-wheel-15306 .list span, .fx-v12-sc-wheel-15306 .list i {
display: grid;
place-items: center;
height: 28px;
scroll-snap-align: center;
font-size: 1.15rem;
font-weight: 600;
font-variant-numeric: tabular-nums;
}
.fx-v12-sc-wheel-15306 .band {
position: absolute;
left: 8px; right: 8px;
top: 56px;
height: 28px;
border-radius: 8px;
background: rgba(249,115,22,0.16);
border: 1px solid rgba(249,115,22,0.6);
pointer-events: none;
}
.fx-v12-sc-wheel-15306 em { position: relative; z-index: 1; font-style: normal; font-size: 1.15rem; font-weight: 600; color: #fdba74; }
.fx-v12-sc-wheel-15306:hover .band { background: rgba(249,115,22,0.28); }<div class="fx-v12-sc-wheel-15306">
<div class="win">
<div class="list">
<i></i>
<i></i>
<span>08</span>
<span>09</span>
<span>10</span>
<span>11</span>
<span>12</span>
<span>13</span>
<span>14</span>
<i></i>
<i></i>
</div>
</div>
<div class="band"></div>
<em>: 00</em>
</div>What do I do with this?
- Put
snap-picker-wheel-15307.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-v12-sc-wheel-15306">. 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 snap-picker-wheel-15307What'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 snap-picker-wheel-15307
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
30 more effects in Scroll & Sticky
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 Scroll & StickyShipping 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 Snap Picker Wheel
Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.