JSFiddle - React, Tailwind, and code Playground
by envira
HTML
<script src="http://www.mageewp.com/mageethemes/wp-content/themes/magee/js/owl.carousel.min.js?ver=4.2.4"></script>
<div class="magee-shortcode testimonials-wrapper style1 "><div class="testimonial-control">
<a href="javascript:;">
<i class="fa fa-angle-left"></i>
</a>
<a href="javascript:;">
<i class="fa fa-angle-right"></i>
</a>
</div><div class="testimonial-box style1 owl-carousel owl-theme" data-autoplay="true"><div class="owl-wrapper-outer"><div class="owl-wrapper"><div class="owl-item"><div class="item"><div class="testimonial-content ">Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur.<i class="fa fa-quote-left"></i><i class="fa fa-quote-right"></i></div><div class="testimonial-author"><img src="http://www.mageewp.com/mageethemes/wp-content/uploads/sites/13/2014/07/testimonial-img-1.jpg"><p>Jane Miller, Company Inc.</p><p>CEO - Media Wiki</p></div></div></div><div class="owl-item"><div class="item"><div class="testimonial-content ">Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur.<i class="fa fa-quote-left"></i><i class="fa fa-quote-right"></i></div><div class="testimonial-author"><img src="http://www.mageewp.com/mageethemes/wp-content/uploads/sites/13/2014/07/testimonial-img-2.jpg"><p>Adam Messer</p><p>CEO - Media Wiki</p></div></div></div><div class="owl-item" style="width: 540px;"><div class="item"><div class="testimonial-content ">Contrary to popular belief, Lorem Ipsum is not simply random text. It has...
CSS
/*
* 16.0 Testimonial
*/
.testimonial-control {
overflow: hidden;
text-align: right;
border-bottom: dotted 1px #ccc;
margin-bottom: 30px;
}
.testimonial-control a {
font-size: 24px;
color: #000;
margin-left: 20px;
}
.testimonial-box {
margin-bottom: 20px;
overflow: hidden;
}
.testimonial-content {
margin-left: 30px;
position: relative;
}
.testimonial-content i {
color: #dbdbdb;
}
.testimonial-content .fa-quote-left {
position: absolute;
top: 0;
left: -30px;
}
.testimonial-content .fa-quote-right {
margin-left: 15px;
}
.testimonial-author {
margin: 30px 0 0 30px;
overflow: hidden;
}
.testimonial-author img {
float: left;
margin-right: 15px;
width: 60px;
height: 60px;
border-radius: 30px;
border: 1px solid #00b7ee;
}
.testimonial-author p {
padding-top: 5px;
margin-bottom: 5px;
font-weight: bold;
}
.testimonial-author p + p {
padding-top: 0;
margin-bottom: 0;
font-weight: normal;
}
/*
* 16.1 Testimonial Style 2
*/
.testimonial-box.style2 .testimonial-content {
border: 1px solid #ccc;
margin-left: 0;
padding: 30px 20px;
}
.testimonial-box.style2 .testimonial-author {
text-align: right;
overflow: hidden;
margin-top: 10px;
}
.testimonial-box.style2 .testimonial-author p {
padding-top: 0;
font-weight: normal;
font-size: 15px;
color: #00b7ee;
margin-bottom: 0;
}
.testimonial-box.style2 .testimonial-author p + p {
padding-top: 0;
margin-bottom: 0;
font-weight: normal;
font-size: inherit;
color: #000;
}
/*
* 16.1 Testimonial Style 3
*/
.testimonial-box.style3 {
position: relative;
overflow: visible;
/*padding-top: 30px;*/
}
.testimonial-box.style3 .testimonial-content {
border: 1px solid #ccc;
padding: 90px 20px 30px;
background-color: #fbfbfb;
margin-left: 0;
}
.testimonial-box.style3 .testimonial-author {
overflow: hidden;
margin: 0;
position: absolute;
text-align: center;
top: 0; left: 0;
width: 100%;
top: -30px;
}
.testimonial-box.style3 .testimonial-author img {
float:...
JavaScript
jQuery(".testimonial-box").owlCarousel({
items : 1,singleItem : true,pagination:false,slideSpeed:200, navigation : false,beforeInit : function(el){
this.options.autoPlay = el.data("autoplay");
}});
jQuery(".testimonial-control .fa-angle-left").click(function(){jQuery(this).parents(".testimonials-wrapper").find(".testimonial-box").trigger('owl.next');});
jQuery(".testimonial-control .fa-angle-right").click(function(){jQuery(this).parents(".testimonials-wrapper").find(".testimonial-box").trigger('owl.prev');})