<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<title>Hello, world!</title>
</head>
<body>
<div id="chatwindow">
<div id="messagewindow">
<p>Daniel wrote: Great party yesterday</p>
<p>Alex wrote: stil hungover</p>
<p>Chris: great party? nah.</p>
<p>Sam: what party</p>
<p>jenny: partytime!</p>
<p>Daniel wrote: Great party yesterday</p>
<p>Alex wrote: stil hungover</p>
<p>Chris: great party? nah.</p>
<p>Sam: what party</p>
<p>jenny: partytime!</p>
<p>Daniel wrote: Great party yesterday</p>
<p>Alex wrote: stil hungover</p>
<p>Chris: great party? nah.</p>
<p>Sam: what party</p>
<p>jenny: partytime!</p>
<p>Daniel wrote: Great party yesterday</p>
<p>Alex wrote: stil hungover</p>
<p>Chris: great party? nah.</p>
<p>Sam: what party</p>
<p>jenny: partytime!</p>
<p>Daniel wrote: Great party yesterday</p>
<p>Alex wrote: stil hungover</p>
<p>Chris: great party? nah.</p>
<p>Sam: what party</p>
<p>jenny: partytime!</p>
<p>Daniel wrote: Great party yesterday</p>
<p>Alex wrote: stil hungover</p>
<p>Chris: great party? nah.</p>
<p>Sam: what party</p>
<p>jenny: partytime!</p>
<p>Daniel wrote: Great party yesterday</p>
<p>Alex wrote: stil hungover</p>
<p>Chris: great party? nah.</p>
<p>Sam: what party</p>
<p>jenny: partytime!</p>
<p>Daniel wrote: Great party yesterday</p>
<p>Alex wrote: stil hungover</p>
<p>Chris: great party? nah.</p>
<p>Sam: what party</p>
<p>jenny: partytime!</p>
<p>Daniel wrote: Great party yesterday</p>
<p>Alex wrote: stil hungover</p>
<p>Chris: great party? nah.</p>
<p>Sam: what party</p>
<p>jenny: partytime!</p>
<p>Daniel wrote: Great party yesterday</p>
<p>Alex wrote: stil hungover</p>
<p>Chris: great party? nah.</p>
<p>Sam: what party</p>
<p>jenny: partytime!</p>
<p>Daniel wrote: Great party yesterday</p>
<p>Alex wrote: stil hungover</p>
<p>Chris: great party? nah.</p>
<p>Sam: what party</p>
<p>jenny: partytime!</p>
<p>Daniel wrote: Great party yesterday</p>
<p>Alex wrote: stil hungover</p>
<p>Chris: great party? nah.</p>
<p>Sam: what party</p>
<p>jenny: partytime!</p>
<p>Daniel wrote: Great party yesterday</p>
<p>Alex wrote: stil hungover</p>
<p>Chris: great party? nah.</p>
<p>Sam: what party</p>
<p>jenny: partytime!</p>
<p>Daniel wrote: Great party yesterday</p>
<p>Alex wrote: stil hungover</p>
<p>Chris: great party? nah.</p>
<p>Sam: what party</p>
<p>jenny: partytime!</p>
<p>Daniel wrote: Great party yesterday</p>
<p>Alex wrote: stil hungover</p>
<p>Chris: great party? nah.</p>
<p>Sam: what party</p>
<p>jenny: partytime!</p>
<p>Daniel wrote: Great party yesterday</p>
<p>Alex wrote: stil hungover</p>
<p>Chris: great party? nah.</p>
<p>Sam: what party</p>
<p>jenny: partytime!</p>
<p>Daniel wrote: Great party yesterday</p>
<p>Alex wrote: stil hungover</p>
<p>Chris: great party? nah.</p>
<p>Sam: what party</p>
<p>jenny: partytime!</p>
<p>Daniel wrote: Great party yesterday</p>
<p>Alex wrote: stil hungover</p>
<p>Chris: great party? nah.</p>
<p>Sam: what party</p>
<p>jenny: partytime!</p>
</div>
</div>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script>
$(document).ready(function(){
$('#messagewindow').animate({
scrollTop: $('#messagewindow')[0].scrollHeight}, 2000);
});
</script>
</body>
</html>