GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

01Thumbnail Rail That Syncs to the Current Page by Calculating Scroll Ratio

The overlap ratio between each page and the viewport is calculated every frame to find the page shown the most, and the thumbnail rail highlights and auto-scrolls that page into the center.

Best forSidebar of a long-contract document viewer

RAIL_LERPcomputeCurrentvisibleRatio
Thumbnail Rail That Syncs to the Current Page by Calculating Scroll Ratio
Open in a new tab

01 Thumbnail Rail That Syncs to the Current Page by Calculating Scroll Ratio — Measured area 59.608% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · PDF Viewer Implementation: 9 UI Patterns

The post this demo lives in

PDF Viewer Implementation: 9 UI Patterns - preview of all 9 demosPDF Viewer Implementation: 9 UI Patternspdf viewer implementation: Does scroll decide the page number, or the reverse? Item 02's zoom center uses pointer coordi See all demos in this post

If you like this effect - similar demos