Automatically Scroll to the Middle of the List

image
Good day, noob question here, how can I achieve this kind of behavior? ( To be able to scroll to the middle of the list automatically )

Hai, that’s a good question!

I already solved it using:
element.scrollIntoView({ block: 'center' })