I'm new to jquery/javascript and have came across an issue.
I have a landing page that displays a large logo. I am wanting a 3 second pause/delay before the automated scroll takes effect.
the code I am using at the moment is-
JS
$('html, body').animate({scrollTop: $('#hello').offset().top}, 4000);
HTML
<div class="fillwindow" style="background-image:url('#')">
<div class="landing__logo">
<img class="landing__logo-img" src="#">
</div>
</div>
<div class="fillwindow" id="hello" style="background-image:url('#')">
<div class="nav-header">
<a href="<?php home_url(); ?>portfolio" class="nav-btn js-navBtn">PORTFOLIO</a>
</div>
<a href="<?php home_url(); ?>portfolio"><div class="nav-hitstate"></div></a>
</div>