How to make such auto-scrolling given fixed height of container ?

https://www.eletypes.com/
In this site when you type and reach second line the first line automatically pushed up. I'm using react to build such application and I don't know whether it can be done from css or js
Screenshot_from_2024-01-22_12-44-48.png
An elegant typing test website.
Was this page helpful?