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<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<div class="container">
<div class="row el-element-overlay">
<div class="col-lg-3 col-md-6">
<div class="card">
<div class="el-card-item">
<div class="el-card-avatar el-overlay-1"> <img src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="user">
<div class="el-overlay">
<ul class="list-style-none el-info">
<li class="el-item"><a class="btn default btn-outline image-popup-vertical-fit el-link" href="#"><i class="fa fa-search" aria-hidden="true"></i></a></li>
<li class="el-item"><a class="btn default btn-outline el-link" href="javascript:void(0);"><i class="fa fa-link" aria-hidden="true"></i></a></li>
</ul>
</div>
</div>
<div class="el-card-content">
<h4 class="m-b-0">Oliver Abram</h4> <span class="text-muted">Graphics Designer</span>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="card">
<div class="el-card-item">
<div class="el-card-avatar el-overlay-1"> <img src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="user">
<div class="el-overlay">
<ul class="list-style-none el-info">
<li class="el-item"><a class="btn default btn-outline image-popup-vertical-fit el-link" href="#"><i class="fa fa-search" aria-hidden="true"></i></a></li>
<li class="el-item"><a class="btn default btn-outline el-link" href="javascript:void(0);"><i class="fa fa-link" aria-hidden="true"></i></a></li>
</ul>
</div>
</div>
<div class="el-card-content">
<h4 class="m-b-0">George Acton</h4> <span class="text-muted">Wordpress Developer</span>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="card">
<div class="el-card-item">
<div class="el-card-avatar el-overlay-1"> <img src="https://bootdey.com/img/Content/avatar/avatar3.png" alt="user">
<div class="el-overlay">
<ul class="list-style-none el-info">
<li class="el-item"><a class="btn default btn-outline image-popup-vertical-fit el-link" href="#"><i class="fa fa-search" aria-hidden="true"></i></a></li>
<li class="el-item"><a class="btn default btn-outline el-link" href="javascript:void(0);"><i class="fa fa-link" aria-hidden="true"></i></a></li>
</ul>
</div>
</div>
<div class="el-card-content">
<h4 class="m-b-0">Harry Addington</h4> <span class="text-muted">Mobile App Developer</span>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="card">
<div class="el-card-item">
<div class="el-card-avatar el-overlay-1"> <img src="https://bootdey.com/img/Content/avatar/avatar4.png" alt="user">
<div class="el-overlay">
<ul class="list-style-none el-info">
<li class="el-item"><a class="btn default btn-outline image-popup-vertical-fit el-link" href="#"><i class="fa fa-search" aria-hidden="true"></i></a></li>
<li class="el-item"><a class="btn default btn-outline el-link" href="javascript:void(0);"><i class="fa fa-link" aria-hidden="true"></i></a></li>
</ul>
</div>
</div>
<div class="el-card-content">
<h4 class="m-b-0">Emily Adley</h4> <span class="text-muted">Wordpress Developer</span>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="card">
<div class="el-card-item">
<div class="el-card-avatar el-overlay-1"> <img src="https://bootdey.com/img/Content/avatar/avatar6.png" alt="user">
<div class="el-overlay">
<ul class="list-style-none el-info">
<li class="el-item"><a class="btn default btn-outline image-popup-vertical-fit el-link" href="#"><i class="fa fa-search" aria-hidden="true"></i></a></li>
<li class="el-item"><a class="btn default btn-outline el-link" href="javascript:void(0);"><i class="fa fa-link" aria-hidden="true"></i></a></li>
</ul>
</div>
</div>
<div class="el-card-content">
<h4 class="m-b-0">Sophia Ainsley</h4> <span class="text-muted">Mobile App Developer</span>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="card">
<div class="el-card-item">
<div class="el-card-avatar el-overlay-1"> <img src="https://bootdey.com/img/Content/avatar/avatar7.png" alt="user">
<div class="el-overlay">
<ul class="list-style-none el-info">
<li class="el-item"><a class="btn default btn-outline image-popup-vertical-fit el-link" href="#"><i class="fa fa-search" aria-hidden="true"></i></a></li>
<li class="el-item"><a class="btn default btn-outline el-link" href="javascript:void(0);"><i class="fa fa-link" aria-hidden="true"></i></a></li>
</ul>
</div>
</div>
<div class="el-card-content">
<h4 class="m-b-0">Lily Ainsworth</h4> <span class="text-muted">Graphics Designer</span>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="card">
<div class="el-card-item">
<div class="el-card-avatar el-overlay-1"> <img src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="user">
<div class="el-overlay">
<ul class="list-style-none el-info">
<li class="el-item"><a class="btn default btn-outline image-popup-vertical-fit el-link" href="#"><i class="fa fa-search" aria-hidden="true"></i></a></li>
<li class="el-item"><a class="btn default btn-outline el-link" href="javascript:void(0);"><i class="fa fa-link" aria-hidden="true"></i></a></li>
</ul>
</div>
</div>
<div class="el-card-content">
<h4 class="m-b-0">Olivia Alby</h4> <span class="text-muted">Mobile App Developer</span>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="card">
<div class="el-card-item">
<div class="el-card-avatar el-overlay-1"> <img src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="user">
<div class="el-overlay">
<ul class="list-style-none el-info">
<li class="el-item"><a class="btn default btn-outline image-popup-vertical-fit el-link" href="#"><i class="fa fa-search" aria-hidden="true"></i></a></li>
<li class="el-item"><a class="btn default btn-outline el-link" href="javascript:void(0);"><i class="fa fa-link" aria-hidden="true"></i></a></li>
</ul>
</div>
</div>
<div class="el-card-content">
<h4 class="m-b-0">Amelia Allerton</h4> <span class="text-muted">Wordpress Developer</span>
</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{
margin-top:20px;
background: #eef5f9;
}
.card {
margin-bottom: 20px;
}
.card {
position: relative;
display: flex;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-color: #fff;
background-clip: border-box;
border: 0 solid transparent;
border-radius: 0;
}
.el-element-overlay .white-box {
padding: 0
}
.el-element-overlay .el-card-item {
position: relative;
padding-bottom: 20px
}
.el-element-overlay .el-card-item .el-card-avatar {
margin-bottom: 20px
}
.el-element-overlay .el-card-item .el-card-content {
text-align: center
}
.el-element-overlay .el-card-item .el-overlay-1 {
width: 100%;
overflow: hidden;
position: relative;
text-align: center;
cursor: default
}
.el-element-overlay .el-card-item .el-overlay-1 img {
display: block;
position: relative;
-webkit-transition: all .4s linear;
transition: all .4s linear;
width: 100%;
height: auto
}
.el-element-overlay .el-card-item .el-overlay-1:hover img {
-ms-transform: scale(1.2) translateZ(0);
-webkit-transform: scale(1.2) translateZ(0)
}
.el-element-overlay .el-card-item .el-overlay-1 .el-info {
text-decoration: none;
display: inline-block;
text-transform: uppercase;
color: #fff;
background-color: transparent;
filter: alpha(opacity=0);
-webkit-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
padding: 0;
margin: auto;
position: absolute;
top: 50%;
left: 0;
right: 0;
transform: translateY(-50%) translateZ(0);
-webkit-transform: translateY(-50%) translateZ(0);
-ms-transform: translateY(-50%) translateZ(0)
}
.el-element-overlay .el-card-item .el-overlay-1 .el-info .el-item {
list-style: none;
display: inline-block;
margin: 0 3px
}
.el-element-overlay .el-card-item .el-overlay-1 .el-info .el-item .el-link {
border-color: #fff;
color: #fff;
padding: 12px 15px 10px
}
.el-element-overlay .el-card-item .el-overlay-1 .el-info .el-item .el-link:hover {
background: #2962FF;
border-color: #2962FF
}
.gmaps-overlay_arrow.above,
.gmaps-overlay_arrow.below {
border-left: 16px solid transparent;
border-right: 16px solid transparent
}
.el-element-overlay .el-card-item .el-overlay {
width: 100%;
height: 100%;
position: absolute;
overflow: hidden;
top: 0;
left: 0;
opacity: 0;
background-color: rgba(0, 0, 0, .7);
-webkit-transition: all .4s ease-in-out;
transition: all .4s ease-in-out
}
.el-element-overlay .el-card-item .el-overlay-1:hover .el-overlay {
opacity: 1;
filter: alpha(opacity=100);
-webkit-transform: translateZ(0);
-ms-transform: translateZ(0);
transform: translateZ(0)
}
.el-element-overlay .el-card-item .el-overlay-1 .scrl-dwn {
top: -100%
}
.el-element-overlay .el-card-item .el-overlay-1 .scrl-up {
top: 100%;
height: 0
}
.el-element-overlay .el-card-item .el-overlay-1:hover .scrl-dwn {
top: 0
}
.el-element-overlay .el-card-item .el-overlay-1:hover .scrl-up {
top: 0;
height: 100%
}
About this bootstrap example/template
This example/template, bs4 user cards with overlay, was published on Oct 3rd 2018, 07:27 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 7.0K 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
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