I have a bootstrap 4 carousel, and it cycles through 6 different products that I offer.
On the right, I have a list of links for the 6 products that I offer. I was looking to add the ability to hover over the links, and flip the the corresponding carousel page.
If a user hovers over multiple links (imagine they drag the mouse down from link 1 to link 6) the carousel will cycle through, one by one, each image that is associated to the link that was hovered over. So it is real easy to hover down the list, and now the carousel is flipping through.
In this case, I'd like to jump directly to the last hovered link. Or some form of a solution similar to that.
Below is an example fiddle, this is my current jquery block:
$.each($('.ql-links'), function(index, value) {
$(this).mouseenter(function() {
const frame = $(this).attr('data-frame');
$('#products-carousel').carousel(Number(frame));
});
});