O
O
offsiderst2021-04-07 17:51:48
Slick
offsiderst, 2021-04-07 17:51:48

How to not show arrow if there are less elements?

there is a slick slider
in it showing 3 elements , the
rest are shown by clicking on the arrows,

but when I have only 2 or 1 element on the page, they are still shown. BUT they are not needed in principle then

https://jsfiddle.net/k5oxdzcn/1/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Pershin, 2021-04-07
@offsiderst

Alternatively, delete before the slider is initialized:
https://jsfiddle.net/l2banners/9w5o2pnq/10/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question