Difference between revisions of "Carousel"

From Tweeki
Jump to: navigation, search
(Created page with "<div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#carousel-example...")
 
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
+
[[Category:Components]]
  <!-- 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 -->
+
== Simple Example ==
  <div class="carousel-inner" role="listbox">
 
    <div class="item active">
 
      <img src="..." alt="...">
 
      <div class="carousel-caption">
 
        ...
 
      </div>
 
    </div>
 
    <div class="item">
 
      <img src="..." alt="...">
 
      <div class="carousel-caption">
 
        ...
 
      </div>
 
    </div>
 
    ...
 
  </div>
 
  
  <!-- Controls -->
+
<pre>
  <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
+
<div id="carouselExampleSlidesOnly" class="carousel slide" data-ride="carousel">
    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
+
<div class="carousel-inner">
    <span class="sr-only">Previous</span>
+
<div class="carousel-item active">
  </a>
+
[[File:Screenshot_tweeki.png|link=Mainpage|class=d-block w-100]]
  <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
+
</div>
    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
+
<div class="carousel-item">
    <span class="sr-only">Next</span>
+
[[File:Screenshot_skrifo.png|link=Mainpage|class=d-block w-100]]
  </a>
+
</div>
 +
</div>
 +
</div>
 +
</pre>
 +
 
 +
<div id="carouselExampleSlidesOnly" class="carousel slide" data-ride="carousel">
 +
<div class="carousel-inner">
 +
<div class="carousel-item active">
 +
[[File:Screenshot_tweeki.png|link=Mainpage|class=d-block w-100]]
 +
</div>
 +
<div class="carousel-item">
 +
[[File:Screenshot_skrifo.png|link=Mainpage|class=d-block w-100]]
 +
</div>
 +
</div>
 
</div>
 
</div>

Latest revision as of 14:30, 30 December 2021


Simple Example

<div id="carouselExampleSlidesOnly" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
[[File:Screenshot_tweeki.png|link=Mainpage|class=d-block w-100]]
</div>
<div class="carousel-item">
[[File:Screenshot_skrifo.png|link=Mainpage|class=d-block w-100]]
</div>
</div>
</div>