V
V
Vladislav2020-08-25 15:41:53
JavaScript
Vladislav, 2020-08-25 15:41:53

How to hover over a slide like this?

https://www.ozon.ru/category/noutbuki-15692/ an example of hovering a thumbnail on a product slide, that is, I move the mouse and certain slides are shown, I use 5f450734bcb8e588122299.jpegif5f4507044f169353073117.jpeg

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladislav, 2020-08-25
@SlavaMaxwell

it helped

$('.slick-dots li').mouseenter(function (e) {
    	var btn = $(this);
        btn[0].click();
    });

https://jsfiddle.net/Denisdude/dkL312o8/23/

W
wscms, 2020-08-25
@wscms

A normal slider that reacts to mouse movement
There are many examples on the net, here is one of them

P
Pashok Doom, 2020-08-25
@Benzin102

Vladislav , I did this:
1. after initializing the slider(s), I created a div on top of the slider, put spans into it one by one for each slide.
2. When hovering each span, the slider scrolls to the desired slide.
3. when moving away from the slider in general - go to the first slide.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question