I
I
Ilya2017-12-11 13:15:15
css
Ilya, 2017-12-11 13:15:15

How to connect Uikit 2 slider?

For some reason, I can't connect the slider to Uikit 2. I seem to be doing everything according to the documentation, but it doesn't work. Maybe someone knows what the problem is?

<div class="uk-slidenav-position" data-uk-slideshow>
      <ul class="uk-slideshow" data-uk-slideshow="{autoplay:true}">
          <li><img src="../img-slider/pic-slider-1.png" width="100%" height="100%" alt="slider picture"></li>
          <li><img src="../img-slider/pic-slider-2.png" width="100%" height="100%" alt="slider picture"></li>
          <li><img src="../img-slider/pic-slider-3.png" width="100%" height="100%" alt="slider picture"></li>
      </ul>
      <a href="" class="uk-slidenav uk-slidenav-contrast uk-slidenav-previous" data-uk-slideshow-item="previous"></a>
      <a href="" class="uk-slidenav uk-slidenav-contrast uk-slidenav-next" data-uk-slideshow-item="next"></a>
      <ul class="uk-dotnav uk-dotnav-contrast uk-position-bottom uk-flex-center">
          <li data-uk-slideshow-item="0"><a href=""></a></li>
          <li data-uk-slideshow-item="1"><a href=""></a></li>
                <li data-uk-slideshow-item="2"><a href=""></a></li>
      </ul>
  </div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew Ghostuhin, 2017-12-14
@Torin_Asakura

Have you added the js part? What does the console write?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question