I am attempting to identify the direction of the slide
in a Bootstrap 4 carousel when the user initiates the slide
event. Is there a method to achieve this?
$('#myCarousel').on('slide.bs.carousel', function () {
//Determine whether the slide direction was to the left or to the right
});