There are similar questions but this is some different and I could not find an adequate solution.
I've simple scroll function, it works well.
JS
$('#nextTabBtn').click(function () {
var leftPos = $('.whatever').scrollLeft();
$(".whatever").animate({scrollLeft: leftPos + 300}, 800);
});
HTML
<a id="nextTabBtn" class="btn btn-info">
<i class="fa fa-caret-right"></i>
</a>
The second click should be only possible, after the animation is done. A user may not click e.g. 10 times on the btn. For the second click he has to wait.
How can I do that with jQuery?