<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 ---------->
<div class="container-fluid bg-dark">
<!-- Demo Title and Copyright References -->
<div class="row mx-auto p-0">
<div class="col-12 text-center mx-auto p-5">
<div class="demo-title">
Fancy Image Hover Effects
</div>
<div class="demo-copyright">
Designed by <a href="https://bootsnipp.com/sarwal" target="_blank" class="text-light">sarwal</a>.
Inspired by <a href="https://bootsnipp.com/Manikanta1023" target="_blank" class="text-light">Manikanta1023</a>'s Hover Effects example.<br>
This demo references the Lily, Sadie, Honey, Layla, & Zoe examples.<br>
These examples are recreated using div classes rather than grid/figcaptions.<br>
Images referenced from <a href="https://www.bhg.com/" target="_blank" class="text-light">Better Homes & Gardens</a>.
</div>
</div>
</div>
<!-- Start of Demo 1 - Lily Effect -->
<div class="row p-0">
<div class="col-12 text-center mx-auto p-3">
<div class="demo-title">
Demo 1 - Lily Effect
</div>
</div>
</div>
<div class="row p-1">
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="lily-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2018/08/15232727/farmhouse-side-table-1b990c68.jpg">
<div class="lily-caption">
<div class="lily-title">
Lily Effect
</div>
<div class="lily-desc">
This is the lily effect. Learn more by clicking here.
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="lily-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2018/08/15232727/farmhouse-side-table-1b990c68.jpg">
<div class="lily-caption">
<div class="lily-title">
Lily Effect
</div>
<div class="lily-desc">
This is the lily effect. Learn more by clicking here.
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="lily-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2018/08/15232727/farmhouse-side-table-1b990c68.jpg">
<div class="lily-caption">
<div class="lily-title">
Lily Effect
</div>
<div class="lily-desc">
This is the lily effect. Learn more by clicking here.
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="lily-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2018/08/15232727/farmhouse-side-table-1b990c68.jpg">
<div class="lily-caption">
<div class="lily-title">
Lily Effect
</div>
<div class="lily-desc">
This is the lily effect. Learn more by clicking here.
</div>
</div>
</div>
</div>
</div>
<!-- End of Demo 1 - Lily Effect -->
<!-- Start of Demo 2 - Sadie Effect -->
<div class="row p-0">
<div class="col-12 text-center mx-auto p-3">
<div class="demo-title">
Demo 2 - Sadie Effect
</div>
</div>
</div>
<div class="row p-1">
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="sadie-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2016/02/15224033/white-vintage-contemporary-kitchen-after-102762705.jpg">
<div class="sadie-caption">
<div class="sadie-title">
Sadie Effect
</div>
<div class="sadie-desc">
This is the sadie effect. Learn more by clicking here.
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="sadie-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2016/02/15224033/white-vintage-contemporary-kitchen-after-102762705.jpg">
<div class="sadie-caption">
<div class="sadie-title">
Sadie Effect
</div>
<div class="sadie-desc">
This is the sadie effect. Learn more by clicking here.
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="sadie-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2016/02/15224033/white-vintage-contemporary-kitchen-after-102762705.jpg">
<div class="sadie-caption">
<div class="sadie-title">
Sadie Effect
</div>
<div class="sadie-desc">
This is the sadie effect. Learn more by clicking here.
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="sadie-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2016/02/15224033/white-vintage-contemporary-kitchen-after-102762705.jpg">
<div class="sadie-caption">
<div class="sadie-title">
Sadie Effect
</div>
<div class="sadie-desc">
This is the sadie effect. Learn more by clicking here.
</div>
</div>
</div>
</div>
</div>
<!-- End of Demo 2 - Sadie Effect -->
<!-- Start of Demo 3 - Honey Effect -->
<div class="row p-0">
<div class="col-12 text-center mx-auto p-3">
<div class="demo-title">
Demo 3 - Honey Effect
</div>
</div>
</div>
<div class="row p-1">
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="honey-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2019/01/16162608/white-vintage-contemporary-kitchen-dining-exposed-beams-102762714.jpg">
<div class="honey-caption">
<div class="honey-title">
Honey <span>Effect</span>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="honey-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2019/01/16162608/white-vintage-contemporary-kitchen-dining-exposed-beams-102762714.jpg">
<div class="honey-caption">
<div class="honey-title">
Honey <span>Effect</span>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="honey-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2019/01/16162608/white-vintage-contemporary-kitchen-dining-exposed-beams-102762714.jpg">
<div class="honey-caption">
<div class="honey-title">
Honey <span>Effect</span>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="honey-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2019/01/16162608/white-vintage-contemporary-kitchen-dining-exposed-beams-102762714.jpg">
<div class="honey-caption">
<div class="honey-title">
Honey <span>Effect</span>
</div>
</div>
</div>
</div>
</div>
<!-- End of Demo 3 - Honey Effect -->
<!-- Start of Demo 4 - Layla Effect -->
<div class="row p-0">
<div class="col-12 text-center mx-auto p-3">
<div class="demo-title">
Demo 4 - Layla Effect
</div>
</div>
</div>
<div class="row p-1">
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="layla-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2016/02/15230656/white-modern-house-curved-patio-archway-c0a4a3b3.jpg">
<div class="layla-caption">
<div class="layla-title">
Layla Effect
</div>
<div class="layla-desc">
This is the layla effect. Learn more by clicking here.
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="layla-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2016/02/15230656/white-modern-house-curved-patio-archway-c0a4a3b3.jpg">
<div class="layla-caption">
<div class="layla-title">
Layla Effect
</div>
<div class="layla-desc">
This is the layla effect. Learn more by clicking here.
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="layla-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2016/02/15230656/white-modern-house-curved-patio-archway-c0a4a3b3.jpg">
<div class="layla-caption">
<div class="layla-title">
Layla Effect
</div>
<div class="layla-desc">
This is the layla effect. Learn more by clicking here.
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="layla-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2016/02/15230656/white-modern-house-curved-patio-archway-c0a4a3b3.jpg">
<div class="layla-caption">
<div class="layla-title">
Layla Effect
</div>
<div class="layla-desc">
This is the layla effect. Learn more by clicking here.
</div>
</div>
</div>
</div>
</div>
<!-- End of Demo 4 - Layla Effect -->
<!-- Start of Demo 5 - Zoe Effect -->
<div class="row p-0">
<div class="col-12 text-center mx-auto p-3">
<div class="demo-title">
Demo 5 - Zoe Effect
</div>
</div>
</div>
<div class="row p-1">
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="zoe-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2019/02/21212234/the-english-room-photo-by-dustin-peck.jpg">
<div class="zoe-caption">
<div class="zoe-title">
Zoe Effect
</div>
<div class="zoe-links float-right">
<a href="#link">✓</a>
<a href="#link">✓</a>
</div>
</div>
<div class="zoe-desc">
This is the zoe effect. Learn more by clicking here.
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="zoe-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2019/02/21212234/the-english-room-photo-by-dustin-peck.jpg">
<div class="zoe-caption">
<div class="zoe-title">
Zoe Effect
</div>
<div class="zoe-links float-right">
<a href="#link">✓</a>
<a href="#link">✓</a>
</div>
</div>
<div class="zoe-desc">
This is the zoe effect. Learn more by clicking here.
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="zoe-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2019/02/21212234/the-english-room-photo-by-dustin-peck.jpg">
<div class="zoe-caption">
<div class="zoe-title">
Zoe Effect
</div>
<div class="zoe-links float-right">
<a href="#link">✓</a>
<a href="#link">✓</a>
</div>
</div>
<div class="zoe-desc">
This is the zoe effect. Learn more by clicking here.
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-12 col-12 mx-auto p-1">
<div class="zoe-box">
<img src="https://static.onecms.io/wp-content/uploads/sites/37/2019/02/21212234/the-english-room-photo-by-dustin-peck.jpg">
<div class="zoe-caption">
<div class="zoe-title">
Zoe Effect
</div>
<div class="zoe-links float-right">
<a href="#link">✓</a>
<a href="#link">✓</a>
</div>
</div>
<div class="zoe-desc">
This is the zoe effect. Learn more by clicking here.
</div>
</div>
</div>
</div>
<!-- End of Demo 5 - Zoe Effect -->
<!-- Removable Spacing for the Bottom of the Page -->
<div class="row p-5">
<div class="col-12 mx-auto p-5">
<!-- spacing -->
</div>
</div>
</div>
/* Font Families Imports */
@import url('https://fonts.googleapis.com/css?family=DM+Serif+Display&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');
/* Removable Demo Title */
.demo-title {
font-family: 'DM Serif Display', serif;
font-weight: normal;
font-size: 30px;
color: #FFFFFF;
}
/* Removable Demo Copyright Paragraph */
.demo-copyright {
font-family: 'Montserrat', sans-serif;
font-weight: normal;
font-size: 16px;
color: #CCCCCC;
}
/* Demo 1 - Lily Effect */
.lily-box {
background-color: #3E606F;
position: relative;
overflow: hidden;
}
.lily-box img {
transition: opacity 0.35s, transform 0.35s;
transform: translate3d(-40px, 0, 0);
width: calc(100% + 50px);
max-width: none;
height: auto;
opacity: 0.7;
}
.lily-box .lily-caption {
position: absolute;
bottom: 10%;
left: 5%;
width: 90%;
height: auto;
}
.lily-box .lily-caption .lily-title {
transform: translate3d(0, 40px, 0);
transition: transform 0.35s;
font-family: 'DM Serif Display', serif;
font-weight: normal;
font-size: 2rem;
text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.25);
text-transform: uppercase;
text-decoration: none;
text-align: left;
color: #FFFFFF;
}
.lily-box .lily-caption .lily-desc {
font-family: 'Montserrat', sans-serif;
font-weight: normal;
font-size: 16px;
text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.25);
text-transform: uppercase;
text-decoration: none;
text-align: left;
transform: translate3d(0, 40px, 0);
color: #FEFEFE;
opacity: 0;
transition: opacity 0.2s, transform 0.35s;
}
.lily-box:hover img {
transform: translate3d(0, 0, 0);
opacity: 1;
}
.lily-box:hover .lily-caption .lily-title {
transform: translate3d(0, 0, 0);
}
.lily-box:hover .lily-caption .lily-desc {
transition-delay: 0.05s;
transition-duration: 0.35s;
transform: translate3d(0, 0, 0);
opacity: 1;
}
/* Demo 2 - Sadie Effect */
.sadie-box {
background-color: rgba(29, 49, 70, 1);
position: relative;
overflow: hidden;
}
.sadie-box img {
width: 100%;
height: auto;
overflow: hidden;
}
.sadie-box .sadie-caption:before {
position: absolute;
top: 0px;
left: 0px;
width: 105%;
height: 105%;
background: linear-gradient(to bottom, rgba(29, 49, 70, 0) 0%, rgba(29, 49, 70, 0.8) 75%);
content: '';
opacity: 0;
transform: translate3d(0, 50%, 0);
transition: all 0.35s ease;
}
.sadie-box .sadie-caption .sadie-title {
position: absolute;
top: 50%;
left: 0%;
width: 100%;
height: auto;
color: rgba(29, 49, 70, 1);
transition: transform 0.35s, color 0.35s;
transform: translate3d(0, -50%, 0);
font-family: 'DM Serif Display', serif;
font-weight: normal;
font-size: 40px;
text-transform: uppercase;
text-decoration: none;
text-align: center;
}
.sadie-box .sadie-caption .sadie-desc {
position: absolute;
bottom: 0;
left: 0;
padding: 30px;
width: 100%;
opacity: 0;
transform: translate3d(0,10px,0);
transition: all 0.35s ease;
font-family: 'Montserrat', sans-serif;
font-weight: normal;
font-size: 0.88rem;
text-transform: uppercase;
text-decoration: none;
text-align: center;
color: #FFFFFF;
}
.sadie-box:hover .sadie-caption:before {
opacity: 1;
transform: translate3d(0,0,0);
}
.sadie-box:hover .sadie-caption .sadie-title {
color: #fff;
transform: translate3d(0,-50%,0) translate3d(0,-40px,0);
}
.sadie-box:hover .sadie-caption .sadie-desc {
transform: translate3d(0,0,0);
opacity: 1;
}
/* Demo 3 - Honey Effect */
.honey-box {
background-color: #4A3753;
position: relative;
overflow: hidden;
}
.honey-box img {
transition: all 0.35s ease;
width: 100%;
height: auto;
overflow: hidden;
opacity: 0.9;
transform: scale(1);
}
.honey-box .honey-caption:before {
transform: translate3d(0, 10px, 0);
background-color: #FFFFFF;
position: absolute;
bottom: 0px;
left: 0px;
width: 100%;
height: 10px;
content: '';
transition: transform 0.35s;
}
.honey-box .honey-caption .honey-title {
transform: translate3d(0, -30px, 0);
position: absolute;
bottom: 0px;
left: 0px;
width: 100%;
height: auto;
font-family: 'DM Serif Display', serif;
font-weight: normal;
font-size: 30px;
text-transform: uppercase;
text-decoration: none;
text-align: left;
padding: 16px 24px;
transition: transform 0.35s;
color: #FFFFFF;
}
.honey-box .honey-caption .honey-title span {
transform: translate3d(0, -30px, 0);
transition: opacity 0.35s, transform 0.35s;
font-family: 'DM Serif Display', serif;
font-weight: normal;
font-size: 30px;
opacity: 0;
color: #CCCCCC;
}
.honey-box:hover img {
opacity: 0.5;
transform: scale(1.1);
}
.honey-box:hover .honey-caption:before {
transform: translate3d(0, 0, 0);
opacity: 1;
}
.honey-box:hover .honey-caption .honey-title {
transform: translate3d(0, 0, 0);
opacity: 1;
}
.honey-box:hover .honey-caption .honey-title span {
transform: translate3d(0, 0, 0);
opacity: 1;
}
/* Demo 4 - Layla Effect */
.layla-box {
background-color: #18A367;
position: relative;
overflow: hidden;
}
.layla-box img {
width: 100%;
height: auto;
overflow: hidden;
transform: scale(1.25) translate3d(0,-30px,0);
transition: all 0.35s ease;
}
.layla-box .layla-caption {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
.layla-box .layla-caption:before, .layla-box .layla-caption:after {
position: absolute;
content: '';
opacity: 0;
transition: all 0.35s ease;
transition: opacity 0.35s, transform 0.35s;
}
.layla-box .layla-caption:before {
transform: scale(0, 1);
transform-origin: 0 0;
border-top: 1px solid #FFFFFF;
border-bottom: 1px solid #FFFFFF;
top: 30px;
bottom: 30px;
left: 20px;
right: 20px;
}
.layla-box .layla-caption:after {
transform: scale(1, 0);
transform-origin: 100% 0;
border-left: 1px solid #FFFFFF;
border-right: 1px solid #FFFFFF;
top: 20px;
bottom: 20px;
left: 30px;
right: 30px;
}
.layla-box .layla-caption .layla-title {
position: absolute;
top: 40%;
left: 0%;
width: 100%;
height: auto;
font-family: 'DM Serif Display', serif;
font-weight: normal;
font-size: 2rem;
text-transform: uppercase;
text-decoration: none;
text-align: center;
color: #FFFFFF;
text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.2);
transform: translate3d(0,-30px,0);
transition: transform 0.35s;
transition: opacity 0.35s, transform 0.35s;
}
.layla-box .layla-caption .layla-desc {
position: absolute;
bottom: 30%;
left: 15%;
width: 70%;
height: auto;
font-family: 'Montserrat', sans-serif;
font-weight: normal;
font-size: 0.9rem;
text-transform: uppercase;
text-decoration: none;
text-align: center;
letter-spacing: 1px;
color: #FFFFFF;
opacity: 0;
transform: translate3d(0,-10px,0);
transition: opacity 0.35s, transform 0.35s;
}
.layla-box:hover img {
opacity: 0.4;
transition-delay: 0.15s;
transform: scale(1.25) translate3d(0, 0, 0);
}
.layla-box:hover .layla-caption:before {
opacity: 1;
transform: scale(1);
}
.layla-box:hover .layla-caption:after {
opacity: 1;
transform: scale(1);
transition-delay: 0.15s;
}
.layla-box:hover .layla-caption .layla-title {
opacity: 1;
transition-delay: 0.15s;
transform: translate3d(0,0,0);
}
.layla-box:hover .layla-caption .layla-desc {
opacity: 1;
transition-delay: 0.15s;
transform: translate3d(0,0,0);
}
/* Demo 5 - Zoe Effect */
.zoe-box {
background-color: #91AA9D;
position: relative;
overflow: hidden;
}
.zoe-box img {
width: 100%;
height: auto;
overflow: hidden;
transition: all 0.5s ease;
opacity: 0.6;
}
.zoe-box .zoe-caption {
position: absolute;
bottom: -25%;
left: 0%;
width: 100%;
background-color: #FFFFFF;
transition: all 0.5s ease;
z-index: 5;
}
.zoe-box .zoe-caption .zoe-title {
display: inline-block;
font-family: 'DM Serif Display', serif;
font-weight: normal;
font-size: 25px;
text-transform: uppercase;
text-decoration: none;
text-align: left;
color: #3E606F;
line-height: 45px;
padding-top: 5px;
padding-left: 15px;
}
.zoe-box .zoe-caption .zoe-links {
display: inline-block;
font-family: 'DM Serif Display', serif;
font-weight: normal;
font-size: 20px;
text-transform: uppercase;
text-decoration: none;
text-align: right;
color: #3E606F;
line-height: 45px;
padding-top: 5px;
padding-right: 15px;
}
.zoe-box .zoe-caption .zoe-links a, .zoe-box .zoe-caption .zoe-links a:first-child, .zoe-box .zoe-caption .zoe-links a:nth-child(2) {
transition: all 0.5s ease;
opacity: 0;
}
.zoe-box .zoe-desc {
position: absolute;
top: 50%;
left: 5%;
width: 90%;
height: auto;
font-family: 'Montserrat', sans-serif;
font-weight: normal;
font-size: 16px;
text-transform: none;
text-decoration: none;
text-align: center;
text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.25);
color: #FFFFFF;
transition: all 0.35s ease;
opacity: 0;
}
.zoe-box:hover .zoe-caption {
bottom: 0%;
}
.zoe-box:hover .zoe-caption .zoe-links:hover, .zoe-box:hover .zoe-caption .zoe-links:hover a:hover {
color: #D1DBBD;
}
.zoe-box:hover .zoe-caption .zoe-links a {
opacity: 1;
}
.zoe-box:hover .zoe-caption .zoe-links a:first-child {
transition-delay: 0.2s;
}
.zoe-box:hover .zoe-caption .zoe-links a:nth-child(2) {
transition-delay: 0.4s;
}
.zoe-box:hover .zoe-desc {
top: 25%;
opacity: 1;
}