N
N
nagge1012018-10-06 21:45:17
JavaScript
nagge101, 2018-10-06 21:45:17

How to add a forward or backward function to a button?

Hello Toasters.
I'm interested in a question about the Slick plugin.
There is a structure like this:

<footer class="footer-modal">
                    <a class="back-link">Назад</a>
                    <a class="next-link">Вперед</a>
                </footer>

How can I assign a non-native button in the plugin?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nagge101, 2018-10-06
@nagge101

I decided myself, zayuzal:

prevArrow: $('Свой класс иди ид'),
nextArrow: $('Свой класс иди ид'),

D
Dima Polos, 2018-10-06
@dimovich85

$('.slider').slick({
    prevArrow: $('.back-link'),
    nextArrow: $('next-link')
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question