Stop 01
Hit ▶ Play Tour below. scrollToSmooth queues all six stops and visits them in sequence via queueScroll().
Stop 02
queueScroll(target) adds to the internal queue. Each animation starts automatically once the previous one ends.
Stop 03
Pass an optional id as the second argument. Call clearQueue(id) to remove a specific stop before it runs.
Stop 04
The ■ Cancel button calls cancelScroll(true). The true flag flushes all pending queue items immediately.
Stop 05
Queue targets can be an Element, a CSS selector, a pixel value, or a ScrollPoint { x, y } for 2D scrolling.
Stop 06
The queue is now empty. Each stop was added with a single queueScroll(el, 'id') call — six lines, six stops.
Scroll Queue
Press Play to start the guided tour.