<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<link href="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.carousel.min.js"></script>
<section class="testimonial-section">
<div class="container">
<div class="row text-center pb-5">
<div class="col-12">
<div class="h2">Testimonial</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div id="testimonial-slider" class="owl-carousel">
<div class="testimonial">
<div class="pic">
<img src="https://images.pexels.com/photos/704955/pexels-photo-704955.jpeg?w=940&h=650&auto=compress&cs=tinysrgb">
</div>
<p class="description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed malesuada vulputate nisi in fermentum. Vivamus ac libero quis nisi auctor pulvinar. Aenean sit amet lectus posuere, mattis massa eget, ullamcorper diam. Nunc sit amet felis eget arcu congue dictum.
</p>
<h3 class="title">Jessica</h3>
<small class="post">- Archietect</small>
</div>
<div class="testimonial">
<div class="pic">
<img src="https://images.pexels.com/photos/638700/pexels-photo-638700.jpeg?w=940&h=650&auto=compress&cs=tinysrgb">
</div>
<p class="description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed malesuada vulputate nisi in fermentum. Vivamus ac libero quis nisi auctor pulvinar. Aenean sit amet lectus posuere, mattis massa eget, ullamcorper diam. Nunc sit amet felis eget arcu congue dictum.
</p>
<h3 class="title">Pearl</h3>
<small class="post">- Engineer </small>
</div>
<div class="testimonial">
<div class="pic">
<img src="https://images.pexels.com/photos/531139/pexels-photo-531139.jpeg?w=940&h=650&auto=compress&cs=tinysrgb">
</div>
<p class="description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed malesuada vulputate nisi in fermentum. Vivamus ac libero quis nisi auctor pulvinar. Aenean sit amet lectus posuere, mattis massa eget, ullamcorper diam. Nunc sit amet felis eget arcu congue dictum.
</p>
<h3 class="title">Kellie</h3>
<small class="post">- Graphic Designer</small>
</div>
</div>
</div>
</div>
</div>
</section>
.testimonial{
border-right: 4px solid #2A3D7D;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
padding: 30px 30px 30px 130px;
margin: 0 15px 30px 15px;
overflow: hidden;
position: relative;
}
.testimonial:before{
content: "";
position: absolute;
bottom: -4px;
left: -17px;
border-top: 25px solid #29D18B;
border-left: 25px solid transparent;
border-right: 25px solid transparent;
transform: rotate(45deg);
}
.testimonial:after{
content: "";
position: absolute;
top: -4px;
left: -17px;
border-top: 25px solid #29D18B;
border-left: 25px solid transparent;
border-right: 25px solid transparent;
transform: rotate(135deg);
}
.testimonial .pic{
display: inline-block;
width: 80px;
height: 80px;
border-radius: 50%;
overflow: hidden;
position: absolute;
top: 60px;
left: 20px;
}
.testimonial .pic img{
width: 100%;
height: auto;
}
.testimonial .description{
font-size: 15px;
letter-spacing: 1px;
color: #6f6f6f;
line-height: 25px;
margin-bottom: 15px;
}
.testimonial .title{
display: inline-block;
font-size: 20px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
color: #29D18B;
margin: 0;
}
.testimonial .post{
display: inline-block;
font-size: 17px;
color: #29D18B;
font-style:italic;
}
.owl-theme .owl-controls .owl-page span{
border: 2px solid #2A3D7D;
background: #fff !important;
border-radius:0 !important;
opacity: 1;
}
.owl-theme .owl-controls .owl-page.active span,
.owl-theme .owl-controls .owl-page:hover span{
background: #29D18B !important;
border-color:#29D18B;
}
@media only screen and (max-width: 767px){
.testimonial{
padding: 20px;
text-align: center;
}
.testimonial .pic{
display: block;
position: static;
margin: 0 auto 15px;
}
}
$(document).ready(function(){
$("#testimonial-slider").owlCarousel({
items:1,
itemsDesktop:[1000,1],
itemsDesktopSmall:[990,2],
itemsTablet:[768,1],
// pagination:true,
// navigation:false,
// navigationText:["",""],
autoplay:false,
autoplayTimeout:1000,
autoplayHoverPause:false,
});
});