auto scroll element html when new element is added code example
Example: how to make auto scroll to the end in css
let objDiv = document.getElementById("divExample");
objDiv.scrollTop = objDiv.scrollHeight;
let objDiv = document.getElementById("divExample");
objDiv.scrollTop = objDiv.scrollHeight;