Difference between revisions of "Carousel"

From Tweeki
Jump to: navigation, search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="alert alert-warning">This page exists just for testing purposes. Carousels are not currently supported by Tweeki out of the box. Patches with CSS fixes and the necessary code to allow the <code>data-slider</code> attribute in <code>btn</code> elements are warmly welcome.</div>
+
[[Category:Components]]
  
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
+
== Simple Example ==
<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>
 
  
<div class="carousel-inner" role="listbox">
+
<pre>
<div class="item active">
+
<div id="carouselExampleSlidesOnly" class="carousel slide" data-ride="carousel">
[[File:Screenshot_tweeki.png|link=|600px]]
+
<div class="carousel-inner">
<div class="carousel-caption">
+
<div class="carousel-item active">
Caption 1
+
[[File:Screenshot_tweeki.png|link=Mainpage|class=d-block w-100]]
 
</div>
 
</div>
 +
<div class="carousel-item">
 +
[[File:Screenshot_skrifo.png|link=Mainpage|class=d-block w-100]]
 
</div>
 
</div>
<div class="item">
 
[[File:Screenshot_skrifo.png|link=|600px]]
 
<div class="carousel-caption">
 
Caption 2
 
 
</div>
 
</div>
 
</div>
 
</div>
Bottom
+
</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>
 
<btn class="left carousel-control" role="button" data-slide="prev">#carousel-example-generic|<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
 
<span class="sr-only">Previous</span>
 
</btn>
 
<btn class="right carousel-control" role="button" data-slide="next">#carousel-example-generic|<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
 
<span class="sr-only">Next</span>
 
</btn>
 
 
</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>