The aim of this project is to get as close as possible to something like https://github.com/WICG/virtual-scroller.
A native-like experience for scrolling large amounts of content.
<virtual-scroller>
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
...
<div>Item 1,000,000</div>
</virtual-scroller>
- Must act like a standard non-inline element.
- Must expand with content, like a standard non-inline element would.
- Must virtualise content when overflow occurs. For example, when the
max-height
is reached. - Must handle being resized. We can use @juggle/resize-observer for this.
- Should support variable row heights.
- Should be exposed as an ES module for easy import.
- Should initially support at least 1 million rich content rows.