<div class="bg-light">
<section id="slider-sec" class="slider3">
<div id="slider3" class="carousel bs-slider control-round indicators-line" data-ride="carousel" data-pause="always" data-interval="false">
<ol class="carousel-indicators hide">
<li data-target="#slider3" data-slide-to="0" class="active"></li>
<li data-target="#slider3" data-slide-to="1"></li>
</ol>
<!-- Wrapper For Slides -->
<div class="carousel-inner" role="listbox">
<div class="carousel-item active">
<!-- Slide Background --><img src="../assets/images/sliders/slider3/slide1.jpg" alt="We are Digital Agency" class="slide-image" data-animation="animated fadeIn" />
<div class="bs-slider-overlay"></div>
<!-- Slide Text Layer -->
<div class="slide-text slide_style_left">
<div class="container">
<div class="row">
<div class="col-md-10 col-lg-6 align-self-center">
<h2 data-animation="animated zoomInRight" class="title text-white">Meet WrapKit, Your One Stop Solution for all Front-end & Backend Needs.</h2>
<p data-animation="animated fadeInLeft" class="m-t-40 m-b-40 hidden-sm-down">Wrapkit will help you to build your Website and Backend Design in record time with fun to work on. Try yourself!</p>
<a class="btn btn-info-gradiant btn-md btn-arrow" data-animation="animated fadeInLeft" data-toggle="collapse" href="#"> <span>Get Register Now! <i class="ti-arrow-right"></i></span> </a>
</div>
<div class="col-lg-5 ml-auto hidden-md-down align-self-center"> <img src="../assets/images/sliders/slider3/video-img.jpg" class="video-img img-responsive" alt="Video" data-animation="animated fadeInRight" />
<div class="embed-responsive hide embed-responsive-16by9" data-animation="animated fadeIn">
<video class="video" controls>
<source src="../assets/videos/running.mp4" type="video/mp4"> Your browser does not support HTML5 video. </video>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End of Slide -->
<!-- Second Slide -->
<div class="carousel-item">
<!-- Slide Background --><img src="../assets/images/sliders/slider3/slide2.jpg" alt="Building Magical Apps" class="slide-image" data-animation="animated fadeIn" />
<!-- Slide Text Layer -->
<div class="slide-text">
<div class="col-md-10 col-lg-7">
<h2 data-animation="animated flipInX" class="title m-b-40 text-white">Meet WrapKit, Your One Stop Solution for all Front-end & Backend Needs.</h2>
<a class="btn bg-danger-gradiant btn-md btn-arrow" data-animation="animated fadeInUp" data-toggle="collapse" href="#"> <span>Get Register Now! <i class="ti-arrow-right"></i></span> </a>
</div>
</div>
</div>
<!-- End of Slide -->
<!-- End of Wrapper For Slides -->
<!-- Slider Control -->
<div class="slider-control">
<!-- Left Control -->
<a class="left carousel-control-prev text-white font-14" href="#slider3" role="button" data-slide="prev"> <span class="ti-arrow-left" aria-hidden="true"></span> <b class="sr-only font-normal">Previous</b> </a>
<!-- Right Control -->
<a class="right carousel-control-next text-white font-14" href="#slider3" role="button" data-slide="next"> <span class="ti-arrow-right" aria-hidden="true"></span> <b class="sr-only font-normal">Next</b> </a>
</div>
<!-- End of Slider Control -->
</div>
</div>
<!-- End Slider -->
</section>
</div>
.slider3 {
.video-img {
-webkit-animation-delay: 1.3s;
animation-delay: 1.3s;
}
.video-img {
cursor:pointer;
}
}
.slider3 {
.bs-slider-overlay {
background:rgba(32, 35, 43, 0.8);
}
.slider-control span {
width:53px;
height:53px;
line-height:53px;
text-align:center;
border-radius:50%;
border:1px solid $white;
}
label {
line-height:27px;
border-radius:0;
color:$dark;
-webkit-animation-delay: 0.5s;
animation-delay: 0.5s;
}
h2 {
line-height:42px;
font-size:36px;
}
p {
line-height:24px;
font-weight:400;
}
i.icon-Play-Music {
font-size:32px;
}
}
@media (max-width: 1280px) {
.slider3 {
overflow-y:hidden;
.slide-image {
height:550px;
width:auto !important;
}
.slider-control span {
width:44px;
height:44px;
line-height:44px;
}
}
}
@media (max-width: 1100px) {
.slider3 {
h2 {
font-size:34px;
}
.slide-image {
left:-20%;
position:relative;
}
.slide-text {
width:80% !important;
}
}
}
@media (max-width:767px) {
.slider3 {
.slider-control span {
width:34px;
height:34px;
line-height:34px;
}
.slide-text {
padding:0 !important;
width:80% !important;
}
h2 {
font-size:28px;
line-height:36px;
margin-bottom:30px;
}
.slide-image {
left:0;
height:300px;
}
.btn {
padding-left:15px;
padding-right:15px;
&.btn-md {
padding-left:25px;
padding-right:25px;
}
}
.btn-pad {
padding-right:0;
}
}
}
@media (max-width: 428px) {
.slider3 {
.slider-control span {
width:26px;
height:26px;
line-height:26px;
font-size:12px !important;
}
h2 {
font-size:22px;
line-height:30px;
margin-bottom:20px;
}
i.icon-Play-Music {
font-size:26px;
}
a.btn-md {
text-align:center;
margin-bottom:10px;
}
.slide-image {
left:-75%;
height:380px;
}
.btn {
padding-left:0;
}
video {
width:160%;
}
}
}
$('#slider3').bsTouchSlider();
$('.carousel-control-prev').click(function () {
$('#slider3').bsTouchSlider('prev');
$("video").each(function () {
this.pause()
});
});
$('.carousel-control-next').click(function () {
$('#slider3').bsTouchSlider('next');
$("video").each(function () {
this.pause()
});
});
$(".carousel .carousel-inner").swipe({
swipeLeft: function (event, direction, distance, duration, fingerCount) {
this.parent().carousel('next');
}
, swipeRight: function () {
this.parent().carousel('prev');
}
, threshold: 0
});
$('.video-img').on('click', function () {
$(this).addClass('hide');
$('.embed-responsive').show().removeClass('hide');
$("video").each(function () {
this.play()
});
});