I am working on a customer review section of my page where it has a div showing names in a row and an arrow that moves to each name after a few seconds. However, when I type in my jQuery for it to wait a few seconds so clients can read the first testimonial, it automatically jumps the number of pixels, despite the fact that I put in the code to delay that. What's going on here?
HTML:
<div class="cust-name div-box" style="padding: 0;">
<div class="d-flex flex-row justify-content-around">
<p>Zach</p>
<p>Zach</p>
<p>Zach</p>
<p>Zach</p>
</div>
<div class="arrow-up"></div>
</div>
jQuery:
var $upArrow = $('.arrow-up');
// $(document).ready(function() {
// $upArrow.delay(5000).css("left", "50px");
// });
$upArrow.hide();
$upArrow.show(2000).css("left", "25px");
$upArrow.delay(2000);
$upArrow.css("left", "50px");