Introduction

The sticky table of contents follows the reader down the page and highlights the current section based on scroll position. It uses IntersectionObserver so it stays smooth without a scroll listener.

The sticky table of contents follows the reader down the page and highlights the current section based on scroll position. It uses IntersectionObserver so it stays smooth without a scroll listener.

The sticky table of contents follows the reader down the page and highlights the current section based on scroll position. It uses IntersectionObserver so it stays smooth without a scroll listener.

Why we built it

The sticky table of contents follows the reader down the page and highlights the current section based on scroll position. It uses IntersectionObserver so it stays smooth without a scroll listener.

The sticky table of contents follows the reader down the page and highlights the current section based on scroll position. It uses IntersectionObserver so it stays smooth without a scroll listener.

The sticky table of contents follows the reader down the page and highlights the current section based on scroll position. It uses IntersectionObserver so it stays smooth without a scroll listener.

How it works

The sticky table of contents follows the reader down the page and highlights the current section based on scroll position. It uses IntersectionObserver so it stays smooth without a scroll listener.

The sticky table of contents follows the reader down the page and highlights the current section based on scroll position. It uses IntersectionObserver so it stays smooth without a scroll listener.

The sticky table of contents follows the reader down the page and highlights the current section based on scroll position. It uses IntersectionObserver so it stays smooth without a scroll listener.

Frequently asked questions

The sticky table of contents follows the reader down the page and highlights the current section based on scroll position. It uses IntersectionObserver so it stays smooth without a scroll listener.

The sticky table of contents follows the reader down the page and highlights the current section based on scroll position. It uses IntersectionObserver so it stays smooth without a scroll listener.

The sticky table of contents follows the reader down the page and highlights the current section based on scroll position. It uses IntersectionObserver so it stays smooth without a scroll listener.

What comes next

The sticky table of contents follows the reader down the page and highlights the current section based on scroll position. It uses IntersectionObserver so it stays smooth without a scroll listener.

The sticky table of contents follows the reader down the page and highlights the current section based on scroll position. It uses IntersectionObserver so it stays smooth without a scroll listener.

The sticky table of contents follows the reader down the page and highlights the current section based on scroll position. It uses IntersectionObserver so it stays smooth without a scroll listener.