I have build vertical timeline but after I have finished I realised that my oldest events are at top and newer are added below. So I have decided to make this div with height of 270px and overflow:overlay (this div is parent to my timeline events, all events have own divs - it has now height cca of 6000px all ) to be always jumped at the bottom of the timeline in order to see the current events.
My parent div to these events has class .TIMELINEcolumn
Script that I found online is this $('#yourDiv').scrollTop($('#yourDiv')[0].scrollHeight);
What I have put at bottom of my page is this:
<script>
$('.TIMELINEcolumn').scrollTop($('.TIMELINEcolumn')[0].scrollHeight);
</script>
But no success, I also tried putting this script to the head of the document and also no success. I have also find some pure css approach with using display:flex and than applying reversed direction but that is not what I was looking for. It looks simple but for me its super complicated. At first I actually wanted to have working anchors to those events on timeline but even this simple task to always jump to the bottom of a div on load is a nightmare for me. If anybody would have clue, please try to explain a bit in primitive fashion so your code can be understood also by me. Thanks a lot.