A
A
Al Tinho2016-10-19 10:25:52
JavaScript
Al Tinho, 2016-10-19 10:25:52

Why is bootstrap slider not spinning?

The essence of the problem is that the bootstrap slider does not spin, because the local site will tell you step by step
- Compiled and downloaded bootstrap - Installed the bootstrap
files in the folder with the site - Connected the bootstrap
scripts and styles in the index.php file
- Inserted the slider code into index.php

<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
  <!-- Indicators -->
  <ol class="carousel-indicators">
    <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
    <li data-target="#carousel-example-generic" data-slide-to="1"></li>
    <li data-target="#carousel-example-generic" data-slide-to="2"></li>
  </ol>

  <!-- Wrapper for slides -->
  <div class="carousel-inner">
    <div class="item active">
      <img src="..." alt="...">
      <div class="carousel-caption">
        ...
      </div>
    </div>
    ...
  </div>

  <!-- Controls -->
  <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
    <span class="glyphicon glyphicon-chevron-left"></span>
  </a>
  <a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
    <span class="glyphicon glyphicon-chevron-right"></span>
  </a>
</div>

Slider not spinning

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Al Tinho, 2016-10-19
@alex_terekhov

<script type="text/javascript" src="/templates/whitesquare/js/bootstrap.js"></script>

S
Sergey Melnikov, 2016-10-19
@mlnkv

Demo to the studio ( https://jsfiddle.net/ , https://jsbin.com/)

J
Just_Andrew, 2016-10-19
@Just_Andrew

Have you initialized it?$('.carousel').carousel();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question