This smooth scroll example uses the `scrollToFn` to implement a custom scrolling function for the methods like `scrollToIndex` and `scrollToOffset`





{#each $virtualizer.getVirtualItems() as row (row.index)}
Row {row.index}
{/each}