A picker read from the end grain of a log: every ring of the photograph is one record, the hand picks a ring by its distance from the pith and it opens, filled flat between its own curves.
Use it when the data is a sequence and the material can stand for it: you give a photo of end grain, its measured ring curves and one item per band. Hover picks a ring, click pins it, the mouse wheel and arrow keys step through.
When not to use
Not for arbitrary lists or filters, since another photograph needs its own measured ring curves. For a plain year filter use Segmented Control or Combobox.
Use it when the data is a sequence of years or releases and the material can stand for it, with one measured photograph; another picture needs its own ring curves. Effects are visual
pieces rather than controls: they do not replace the Interface components in dashboards and forms.
The effect needs your image through its image prop (see the table below). Use a JPEG or WebP of at
least 1600 px on the long side, under 200 KB (400 KB at full screen); host it on your own origin or
send CORS headers, because the browser blocks cross-origin textures. The demo images stay on this
site and are not installed.
The whole piece is a slider with the picked ring as its value: arrow keys, Home and End pick, Esc frees a pin. The canvas and the ruler are aria-hidden.
The effect never takes focus. On touch screens a horizontal drag moves along the ruler and picks a ring, and at rest the rings pass by themselves; vertical scrolling stays with the page.
No lens and no wave: the picked ring fills in one step, without opening. The Heartwood hooks read usePrefersReducedMotion, so the MotionKitProvider setting applies too.
One texture and one fragment shader; ring curves live in a small polar texture. The loop stops off screen and in hidden tabs, and the wheel is only listened to where there is one.
The device pixel ratio is capped at 2. Without WebGL support the content renders without the effect.
Source size is checked against the 15 KB gzip budget for effects (pnpm size).
Technical sheet
Motion
calm
260 ms · bounce 0
lively
400 ms · bounce 0.3
playful
540 ms · bounce 0.45
Main spring of each temperament. Set it with the temperament prop or MotionKitProvider; the default is lively.
Size
Not measured yet · budget 26.0 kB gzip
Component and MotionKit helpers; excludes react, react-dom.
Dependencies
motion
ogl@1.0.11
Triggers
pointer movement, click
Reduced motion
No lens and no wave: the picked ring fills in one step, without opening.
Keyboard
Arrow keys / Home / End
Pick and pin a ring; Esc frees it
Wheel
Steps one ring at a time on devices with a wheel
Browsers
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)