HTML code
This is the html code used to create this bootstrap snippet, You can copy and paste the following html code inside a page with bootstrap 4.1.1 included, to get the result that you can see in the preview selection
Download<div class="container">
<div class="row">
<div class="col-sm-12 col-md-6 col-lg-6 py-0 pl-3 pr-1 featcard">
<div id="featured" class="carousel slide carousel-fade" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<div class="card bg-dark text-white">
<img class="card-img img-fluid" src="https://www.bootdey.com/image/350x350/FFB6C1/000000" alt="">
<div class="card-img-overlay d-flex linkfeat">
<a href="#" class="align-self-end">
<span class="badge">Bootdey</span>
<h4 class="card-title">Lorem ipsum dolor sit amet</h4>
<p class="textfeat" style="display: none;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa</p>
</a>
</div>
</div>
</div>
<div class="carousel-item">
<div class="card bg-dark text-white">
<img class="card-img img-fluid" src="https://www.bootdey.com/image/350x350/87CEFA/000000" alt="">
<div class="card-img-overlay d-flex linkfeat">
<a href="#" class="align-self-end">
<span class="badge">Bootdey</span>
<h4 class="card-title">Lorem ipsum dolor sit amet</h4>
<p class="textfeat" style="display: none;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa</p>
</a>
</div>
</div>
</div>
<div class="carousel-item">
<div class="card bg-dark text-white">
<img class="card-img img-fluid" src="https://www.bootdey.com/image/350x350/FFB6C1/000000" alt="">
<div class="card-img-overlay d-flex linkfeat">
<a href="#" class="align-self-end">
<span class="badge">Bootdey</span>
<h4 class="card-title">Lorem ipsum dolor sit amet</h4>
<p class="textfeat" style="display: none;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa</p>
</a>
</div>
</div>
</div>
<div class="carousel-item">
<div class="card bg-dark text-white">
<img class="card-img img-fluid" src="https://www.bootdey.com/image/350x350/FF7F50/000000" alt="">
<div class="card-img-overlay d-flex linkfeat">
<a href="#" class="align-self-end">
<span class="badge">Industri</span>
<h4 class="card-title">Lorem ipsum dolor sit amet</h4>
<p class="textfeat" style="display: none;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa</p>
</a>
</div>
</div>
</div>
<div class="carousel-item">
<div class="card bg-dark text-white">
<img class="card-img img-fluid" src="https://www.bootdey.com/image/350x350/20B2AA/000000" alt="">
<div class="card-img-overlay d-flex linkfeat">
<a href="#" class="align-self-end">
<span class="badge">Bootdey</span>
<h4 class="card-title">Lorem ipsum dolor sit amet</h4>
<p class="textfeat" style="display: none;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa</p>
</a>
</div>
</div>
</div>
<div class="carousel-item">
<div class="card bg-dark text-white">
<img class="card-img img-fluid" src="https://www.bootdey.com/image/350x350/87CEFA/000000" alt="">
<div class="card-img-overlay d-flex linkfeat">
<a href="#" class="align-self-end">
<span class="badge">Bootdey</span>
<h4 class="card-title">Lorem ipsum dolor sit amet</h4>
<p class="textfeat" style="display: none;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa</p>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-6 py-0 px-1 d-none d-lg-block">
<div class="row">
<div class="col-6 pb-2 mg-1 ">
<div class="card bg-dark text-white">
<img class="card-img img-fluid" src="https://www.bootdey.com/image/350x350/FFA07A/000000" alt="">
<div class="card-img-overlay d-flex">
<a href="#" class="align-self-end">
<span class="badge">Finansial</span>
<h6 class="card-title">BI Atur Standarisasi QR Code</h6>
</a>
</div>
</div>
</div>
<div class="col-6 pb-2 mg-2 ">
<div class="card bg-dark text-white">
<img class="card-img img-fluid" src="https://www.bootdey.com/image/350x350/BA55D3/000000" alt="">
<div class="card-img-overlay d-flex">
<a href="#" class="align-self-end">
<span class="badge">Industri</span>
<h6 class="card-title">PTSP BP Batam Masuk 10 Terbaik di Indonesia</h6>
</a>
</div>
</div>
</div>
<div class="col-6 pb-2 mg-3 ">
<div class="card bg-dark text-white">
<img class="card-img img-fluid" src="https://www.bootdey.com/image/350x350/C71585/000000" alt="">
<div class="card-img-overlay d-flex">
<a href="#" class="align-self-end">
<span class="badge">Ekspor</span>
<h6 class="card-title">Review GSP: Amerika Ingin Perdagangan Saling Menguntungkan</h6>
</a>
</div>
</div>
</div>
<div class="col-6 pb-2 mg-4 ">
<div class="card bg-dark text-white">
<img class="card-img img-fluid" src="https://www.bootdey.com/image/350x350/000080/000000" alt="">
<div class="card-img-overlay d-flex">
<a href="#" class="align-self-end">
<span class="badge">Pertumbuhan Ekonomi</span>
<h6 class="card-title">DPR Setujui Penambahan Anggaran BP Batam Rp565 Miliar</h6>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
CSS code
This is the css code used to create this bootstrap snippet, You can copy and paste the following css code inside a page with bootstrap 4.1.1 included, to get the result that you can see in the preview selection
Downloadbody{
background:#ddd;
}
a, a:focus , a:hover{
text-decoration: none;
color: inherit;
}
a:hover, .btn{
outline:none!important;
}
/*ROUNDED CORNER*/
*{
-webkit-border-radius: 0 !important;
-moz-border-radius: 0 !important;
border-radius: 0 !important;
}
/*CATEGORIES BADGE*/
.badge {
font-weight: 600;
font-size: 13px;
color: white;
background-color: #289dcc;
}
/*FEATURED*/
.mg-2, .mg-4{
margin-left:-20px;
}
.linkfeat{
background: rgba(76,76,76,0);
background: -moz-linear-gradient(top, rgba(76,76,76,0) 0%, rgba(48,48,48,0) 49%, rgba(19,19,19,1) 100%);
background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(76,76,76,0)), color-stop(49%, rgba(48,48,48,0)), color-stop(100%, rgba(19,19,19,1)));
background: -webkit-linear-gradient(top, rgba(76,76,76,0) 0%, rgba(48,48,48,0) 49%, rgba(19,19,19,1) 100%);
background: -o-linear-gradient(top, rgba(76,76,76,0) 0%, rgba(48,48,48,0) 49%, rgba(19,19,19,1) 100%);
background: -ms-linear-gradient(top, rgba(76,76,76,0) 0%, rgba(48,48,48,0) 49%, rgba(19,19,19,1) 100%);
background: linear-gradient(to bottom, rgba(76,76,76,0) 0%, rgba(48,48,48,0) 49%, rgba(19,19,19,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4c4c4c', endColorstr='#131313', GradientType=0 );
}
Javascript/Jquery code
This is the javascript code used to create this bootstrap snippet, You can copy and paste the following javascript code inside a page with bootstrap 4.1.1 included, to get the result that you can see in the preview selection
Download//FEATURED HOVER
$(document).ready(function(){
$(".linkfeat").hover(
function () {
$(".textfeat").show(500);
},
function () {
$(".textfeat").hide(500);
}
);
});
About this bootstrap example/template
This example/template, bs4 Carousel Featured News, was published on Apr 11th 2014, 18:53 by Bootdey Admin and it is free.
We hope you will enjoy this awesome snippet and stay tuned for the latest updates, bootdey snippets are already used in thousands of blogs, websites and projects. We believe it will save your precious time and gives trendy look to your next web project.
We always try to offer the best beautiful and responsive source of Bootstrap code examples and components.
This code example currectly have 5.7K views, Using this bootstrap snippet you have the following benefits:
Bootstrap 4.1.1
<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css'>
<script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js'></script>
This code example is based on bootstrap 4.1.1 and the grid system of this framework
Responsive
Based on bootstrap framework makes all the layouts perfectly responsive for all devices
Crossbrowser compatibility
Tested on all major browsers, it works smoothly on all of them
Jquery plugins
Great built-in plugins with jquery framework, you can easy to change all declarations
semantic html 5
Built on html / css3 the code quality is really amazing
Simple Integration
This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working