Four scroll-snap wheels, and a readout that counts along with them. No JavaScript: each wheel
publishes its scroll progress as a named scroll timeline,
the frame puts those names in scope, and the big date at the bottom is five
counter()s whose values are registered integers being animated along those
timelines. The item parked on the red line knows it is parked there, through a
scroll-state(snapped) container query.
The tick rail beside each column is the precise control. A mouse wheel notch is a fixed
platform distance, so the wheels themselves step two or three items at a time; every rail tick
is a ::scroll-marker that lands its own item on the red line exactly, and
:target-current marks the one the scroller is parked on. Arrow keys on a focused
wheel move one item per press.
This demo needs scroll-driven animations (Chrome 115+) and scroll-state container queries (Chrome 133+). Without them the wheels still scroll and snap, but the readout stays on the date it starts from.
Year
Day
Month
Time
Location and localization
Set a Timer
.. At :