So I am trying to get the page I am working on to smooth scroll to a headline in a div after about a minute on page load (I know this is a cardinal sin in UX). I came up with this but so far, it hasn't worked.
jQuery
$('body').delay(5000)
.animate({
'scrollTop': $('#target').offset().top
}, 5000);
});
HTML
<div class="container" >
<div class="row" id="target">
<div class="section-heading px-3 pl-4 pr-3 pt-md-5 pb-md-4 mx-auto text-center" >
<h1 class="display-4" id="tap">Headline</h1>
</div>
<div class="col-lg-4">
<img class="rounded-circle" src="#" alt="image" width="173" height="173">
<h2 class="value-heading">small heading</h2>
<p class="value-description">info</p>
</div>
<!-- /.col-lg-4 -->
<div class="col-lg-4">
<img class="rounded-circle" src="#" alt="image" width="173" height="173">
<h2 class="value-heading">small heading</h2>
<p class="value-description">info</p>
</div>
<!-- /.col-lg-4 -->
<div class="col-lg-4">
<img class="rounded-circle" src="#" alt="image" width="173" height="173">
<h2 class="value-heading">small heading</h2>
<p class="value-description">info</p>
</div>
<!-- /.col-lg-4 -->
</div>
<!-- /.row -->
</div>