In this minimal testimonial slider built on the top of bootstrap carousel we have we have changed the navigation dots to the faces of testimonial personalities
Created
April 9, 2020 07:35
-
-
Save SatishKumarsbs/d164982fa09afd36baf2989c0104669a to your computer and use it in GitHub Desktop.
Bootstrap Testimonial Slider Example 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="row"> | |
<div class="col-md-12"> | |
<div class="carousel slide" data-ride="carousel" id="quote-carousel"> | |
<!-- Carousel Slides / Quotes --> | |
<div class="carousel-inner text-center"> | |
<!-- Quote 1 --> | |
<div class="item active"> | |
<blockquote> | |
<div class="row"> | |
<div class="col-sm-8 col-sm-offset-2"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. !</p> | |
<small>Someone famous</small> | |
</div> | |
</div> | |
</blockquote> | |
</div> | |
<!-- Quote 2 --> | |
<div class="item"> | |
<blockquote> | |
<div class="row"> | |
<div class="col-sm-8 col-sm-offset-2"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. </p> | |
<small>Someone famous</small> | |
</div> | |
</div> | |
</blockquote> | |
</div> | |
<!-- Quote 3 --> | |
<div class="item"> | |
<blockquote> | |
<div class="row"> | |
<div class="col-sm-8 col-sm-offset-2"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. .</p> | |
<small>Someone famous</small> | |
</div> | |
</div> | |
</blockquote> | |
</div> | |
</div> | |
<!-- Bottom Carousel Indicators --> | |
<ol class="carousel-indicators"> | |
<li data-target="#quote-carousel" data-slide-to="0" class="active"><img class="img-responsive " src="https://s3.amazonaws.com/uifaces/faces/twitter/mantia/128.jpg" alt=""> | |
</li> | |
<li data-target="#quote-carousel" data-slide-to="1"><img class="img-responsive" src="https://s3.amazonaws.com/uifaces/faces/twitter/adhamdannaway/128.jpg" alt=""> | |
</li> | |
<li data-target="#quote-carousel" data-slide-to="2"><img class="img-responsive" src="https://s3.amazonaws.com/uifaces/faces/twitter/brad_frost/128.jpg" alt=""> | |
</li> | |
</ol> | |
<!-- Carousel Buttons Next/Prev --> | |
<a data-slide="prev" href="#quote-carousel" class="left carousel-control"><i class="fa fa-chevron-left"></i></a> | |
<a data-slide="next" href="#quote-carousel" class="right carousel-control"><i class="fa fa-chevron-right"></i></a> | |
</div> | |
</div> | |
</div> | |
<a class="btn btn-primary" href="http://thecodeblock.com/create-a-quote-testimonial-slider-using-bootstrap-carousel"><i class="fa fa-arrow-left"></i> Back to Article</a> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#quote-carousel { | |
padding: 0 10px 30px 10px; | |
margin-top: 60px; | |
} | |
#quote-carousel .carousel-control { | |
background: none; | |
color: #CACACA; | |
font-size: 2.3em; | |
text-shadow: none; | |
margin-top: 30px; | |
} | |
#quote-carousel .carousel-indicators { | |
position: relative; | |
right: 50%; | |
top: auto; | |
bottom: 0px; | |
margin-top: 20px; | |
margin-right: -19px; | |
} | |
#quote-carousel .carousel-indicators li { | |
width: 50px; | |
height: 50px; | |
cursor: pointer; | |
border: 1px solid #ccc; | |
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); | |
border-radius: 50%; | |
opacity: 0.4; | |
overflow: hidden; | |
transition: all .4s ease-in; | |
vertical-align: middle; | |
} | |
#quote-carousel .carousel-indicators .active { | |
width: 128px; | |
height: 128px; | |
opacity: 1; | |
transition: all .2s; | |
} | |
.item blockquote { | |
border-left: none; | |
margin: 0; | |
} | |
.item blockquote p:before { | |
content: "\f10d"; | |
font-family: 'Fontawesome'; | |
float: left; | |
margin-right: 10px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" /> | |
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment