"Fancy Image Hover Effects"
Bootstrap 4.1.1 Snippet by sarwal

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 ---------->
<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">
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
/* 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%;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: