Do a search for it on google. You will most likely need to use css to do it. There may be something on the site already but not 100%.
Have a good one…
Just thought and tested. if you set the overflow to hidden the text will still show because you have the .scrollIntoView()
But note you will not be able to scroll manually using a scroll wheel. But selecting inside the text and arrow keys allow to scroll…
Scroll on Auto ( in example above at least )
Increaase ofr decrease as needed.