I
I
Ilya2017-12-13 15:54:40
UIkit
Ilya, 2017-12-13 15:54:40

Why do not work dots in the slider?

Here is the slider code. It displays correctly. All right. The dots appeared, but when you click on them, nothing happens. I work with Uikit 2. I seem to be doing everything according to the documentation, but the result is not the same. Maybe someone knows what's the matter and how to make the slider points function?

<!-- slider -->
<div class="uk-slidenav-position" data-uk-slider="{autoplay:true}">
    <div class="uk-slider-container">
        <ul class="uk-slider uk-grid-width-medium-1-1"> 
  			<li><img src="storage/sons/pic-slider-1.jpg" width="100%" height="100%" alt="slider picture"></li>
            <li><img src="storage/sons/pic-slider-2.jpg" width="100%" height="100%" alt="slider picture"></li>
            <li><img src="storage/sons/pic-slider-3.jpg" width="100%" height="100%" alt="slider picture"></li>
            <li><img src="storage/sons/pic-slider-4.jpg" width="100%" height="100%" alt="slider picture"></li>
        </ul>
        <ul class="uk-dotnav uk-dotnav-contrast uk-position-bottom uk-flex-center">
            <li data-uk-slideshow-item="0"><a href="#">Item 1</a></li>
            <li data-uk-slideshow-item="1"><a href="#">Item 2</a></li>
            <li data-uk-slideshow-item="2"><a href="#">Item 3</a></li>
            <li data-uk-slideshow-item="3"><a href="#">Item 4</a></li>
        </ul>
    </div>
</div>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
maxsnw, 2017-12-13
@gurzoof

dotnav.css included? if you use a slideshow and not a slider, will it work?

I
Ilya, 2017-12-13
@gurzoof

from the slideshow, the points have earned, but the pictures have now become extremely large) heheh

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question