"owl carousel"
Bootstrap 4.1.1 Snippet by Niloydeysarkar

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<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="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<!-- Google font -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Titillium+Web:400,400i,600,600i,700,700i,900">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,400i,600,600i,700,700i,800,800i">
<!-- Bootstrap -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<!-- icofont -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionic/1.3.2/css/ionic.css">
<!-- carousel -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.css">
<section class="blog_section">
<div class="container">
<div class="blog_content">
<div class="owl-carousel owl-theme">
<div class="blog_item">
<div class="blog_image">
<img class="img-fluid" src="https://cdn.pixabay.com/photo/2019/03/10/18/31/hong-kong-4046913_960_720.jpg" alt="images not found">
<span><i class="icon ion-md-create"></i></span>
</div>
<div class="blog_details">
<div class="blog_title">
<h5><a href="#">We are best for any industrial & business solution.</a></h5>
</div>
<ul>
<li><i class="icon ion-md-person"></i>Alex</li>
<li><i class="icon ion-md-calendar"></i>August 1, 2018</li>
</ul>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem...</p>
<a href="#">Read More<i class="icofont-long-arrow-right"></i></a>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.blog_section {
padding-top: 5rem;
padding-bottom: 3rem;
}
.blog_section .blog_content .blog_item {
margin-bottom: 30px;
box-shadow: 0 0 11px 0 rgba(6, 22, 58, 0.14);
position: relative;
border-radius: 2px;
overflow: hidden;
}
.blog_section .blog_content .blog_item:hover .blog_image img {
transform: scale(1.1);
}
.blog_section .blog_content .blog_item .blog_image {
overflow: hidden;
padding: 0;
}
.blog_section .blog_content .blog_item .blog_image img {
width: 100%;
transition: transform 0.5s ease-in-out;
}
.blog_section .blog_content .blog_item .blog_image span i {
position: absolute;
z-index: 2;
color: #fff;
font-size: 18px;
width: 38px;
height: 45px;
padding-top: 7px;
text-align: center;
right: 20px;
top: 0;
-webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 79%, 0 100%);
clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 79%, 0 100%);
background-color: #ff5e14;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$('.owl-carousel').owlCarousel({
loop:true,
margin:10,
dots:false,
nav:true,
autoplay:true,
smartSpeed: 3000,
autoplayTimeout:7000,
responsive:{
0:{
items:1
},
600:{
items:2
},
1000:{
items:3
}
}
})
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

Hello, I would like to add 2 more items, how should I proceed in the code?Thanks

Rikky () - 5 years ago - Reply 0