M
M
MegaPuxapb2018-03-13 21:54:25
JavaScript
MegaPuxapb, 2018-03-13 21:54:25

Slick slider & FancyBox3?

Slick slider & FancyBox3 does not work correctly.
There are 3 pictures in the slide, Fancy shows that there are 5 of them.
5aa81e08dad28728178522.jpeg
q665588f.beget.tech/testFancy3/index.html

how to fix it?
Or at least how to remove the counter of pictures in Fancy?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergiu Mitu, 2018-03-14
@MegaPuxapb

Well, if you need to leave both the counter and infinite: true, then like this:

//prevent duplicate in fancybox
$(document).find('.slick-cloned a').removeAttr('data-fancybox');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question