A
A
Alexander2018-09-04 19:17:22
css
Alexander, 2018-09-04 19:17:22

How to make such switches in slick?

Please tell me how to do something like this in slick? Precisely positioning arrows to dots

spoiler
5b8eafe25baea863177200.png

I tried it myself, but everything depends on the number of slides, you need the arrows to "stick" to the dots

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
inkShio, 2018-09-04
@inkShio

You create a block for all this, for example .SlickNavBlock
Then write these options

// в них добавляешь что то типо того
appendDots: $(this).closest('.slider').find('.SlickNavBlock'),
appendArrows: $(this).closest('.slider').find('.SlickNavBlock'),

Then write these options
prevArrow: '<span class="slick-arrow_custom-left"></span>',
nextArrow: '<span class="slick-arrow_custom-rigth"></span>',
dotsClass: 'slick-custom-dots',

And that's it, it's up to CSS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question