3 ms·
+1. Does someone know how to do that?
by joennlae 3y ago
+1. Does someone know how to do that?
- progbits 3y agoFirefox only: https://news.ycombinator.com/item?id=36757542 https://news.ycombinator.com/item?id=36757542
- m1el 3y agoThe minimap contains a copy of the content, but with `transform: scale`. The rest is handling `window.onscroll` and mouse events on the overlay.
- Klaster_1 3y agoFound a canvas-based library for this: https://larsjung.de/pagemap/ https://larsjung.de/pagemap/. Definitely not what OP uses, where the minimap is a shrunk copy of the content markup, with all the drawbacks, such as page search finding the same item twice.
- orlp 3y agoThe author should really add at least aria-hidden="true" to the minimap element.