I have a div
acting as a chat feature, where messages are appended based on user actions. I am trying to make it so that the div automatically scrolls down after each message is added, but I'm encountering some issues with this functionality.
You can view the code on this fiddle: https://jsfiddle.net/mfj1ub8c/
I suspect that the problem lies in the delays, fade-in effects, and hide methods used during each append operation, but these are necessary for the desired visual effect.
Do you have any suggestions on how to address this issue?