content logo

Bootstrap Thumbnails:

Bootstrap Thumbnail with Caption Gradient Background and Zoom Effect

If you have a website and you upload images all the time, look at this post carefully and use the mentioned code on your page. We are going to introduce a functional bootstrap in this post. You can see the Bootstrap Thumbnail with Caption Gradient Background and Zoom Effect here with a great performance. In addition to its functionality, this Bootstrap Thumbnail Code has an attractive design that attracts anyone’s attention. You can add photos to your website with this HTML Thumbnail Caption Effect and make your page beautiful.

As the following preview shows, this bootstrap has three pictures and if you put the mouse on each one, you will face a zoom effect. The Thumbnail with Zoom Effect has a purple and pink gradient background and the writings are white. There is a small circle on the right side of the caption with white color. You can add a date to this circle. The color of the writings on these circles is pink. This color has a harmony with the Gradient Background for Thumbnails. The titles of the captions are bold and other writings have a smaller font size. You can download this code from this link and enjoy it.

#

Bootstrap Thumbnail Code

#

HTML Thumbnail Caption Effect

#

Thumbnail with Zoom Effect

#

Gradient Background for Thumbnails

<!-- This script got from frontendfreecode.com -->
<div class="d-flex justify-content-center container mt-5">
    <figure class="snip1527">
        <div class="image"><img src="http://frontendfreecode.com/img/sSuJsu8.jpg" alt="pr-sample23" /></div>
        <figcaption>
            <div class="date"><span class="day">28</span><span class="month">Nov</span></div>
            <h3>
                Acer Aspire 7 Gaming Laptop</h3>
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
        </figcaption> <a href="#"></a>
    </figure>
    <figure class="snip1527 hover">
        <div class="image"><img src="http://frontendfreecode.com/img/E0e8fLV.jpg" alt="pr-sample24" /></div>
        <figcaption>
            <div class="date"><span class="day">17</span><span class="month">Nov</span></div>
            <h3>
                RedmiBook, Mi Laptops Launch</h3>
            <p> laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse </p>
        </figcaption> <a href="#"></a>
    </figure>
    <figure class="snip1527">
        <div class="image"><img src="http://frontendfreecode.com/img/qNV4rMU.jpg" alt="pr-sample25" /></div>
        <figcaption>
            <div class="date"><span class="day">01</span><span class="month">Dec</span></div>
            <h3>Google May Face Antitrust Case</h3>
            <p> Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </p>
        </figcaption> <a href="#"></a>
    </figure>
</div><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
body {
    background: #eee
}
.snip1527 {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    float: left;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 16px;
    margin: 10px 1%;
    max-width: 310px;
    min-width: 250px;
    overflow: hidden;
    position: relative;
    text-align: left;
    width: 100%
}
.snip1527 * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease
}
.snip1527 img {
    max-width: 100%;
    vertical-align: top;
    position: relative
}
.snip1527 figcaption {
    padding: 25px 20px 25px;
    position: absolute;
    bottom: 0;
    z-index: 1
}
.snip1527 figcaption:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #700877;
    content: '';
    background: -moz-linear-gradient(90deg, #700877 0%, #ff2759 100%, #ff2759 100%);
    background: -webkit-linear-gradient(90deg, #700877 0%, #ff2759 100%, #ff2759 100%);
    background: linear-gradient(90deg, #700877 0%, #ff2759 100%, #ff2759 100%);
    opacity: 0.8;
    z-index: -1
}
.snip1527 .date {
    background-color: #fff;
    border-radius: 50%;
    color: #700877;
    font-size: 18px;
    font-weight: 700;
    min-height: 48px;
    min-width: 48px;
    padding: 10px 0;
    position: absolute;
    right: 15px;
    text-align: center;
    text-transform: uppercase;
    top: -25px
}
.snip1527 .date span {
    display: block;
    line-height: 14px
}
.snip1527 .date .month {
    font-size: 11px
}
.snip1527 h3,
.snip1527 p {
    margin: 0;
    padding: 0
}
.snip1527 h3 {
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 5px
}
.snip1527 p {
    font-size: 0.8em;
    line-height: 1.6em;
    margin-bottom: 0px
}
.snip1527 a {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    position: absolute;
    z-index: 1
}
.snip1527:hover img,
.snip1527.hover img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1)
}
img {
    border-radius: 5px
}
img {
    border-radius: 5px
}
<link href='https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css' rel='stylesheet'>
<link href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css' rel='stylesheet'>
<script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>
<script type='text/javascript' src='https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js'></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link href='https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css' rel='stylesheet'>
<link href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css' rel='stylesheet'>
<script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>
<script type='text/javascript' src='https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js'></script>
<style>
body {
    background: #eee
}
.snip1527 {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    float: left;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 16px;
    margin: 10px 1%;
    max-width: 310px;
    min-width: 250px;
    overflow: hidden;
    position: relative;
    text-align: left;
    width: 100%
}
.snip1527 * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease
}
.snip1527 img {
    max-width: 100%;
    vertical-align: top;
    position: relative
}
.snip1527 figcaption {
    padding: 25px 20px 25px;
    position: absolute;
    bottom: 0;
    z-index: 1
}
.snip1527 figcaption:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #700877;
    content: '';
    background: -moz-linear-gradient(90deg, #700877 0%, #ff2759 100%, #ff2759 100%);
    background: -webkit-linear-gradient(90deg, #700877 0%, #ff2759 100%, #ff2759 100%);
    background: linear-gradient(90deg, #700877 0%, #ff2759 100%, #ff2759 100%);
    opacity: 0.8;
    z-index: -1
}
.snip1527 .date {
    background-color: #fff;
    border-radius: 50%;
    color: #700877;
    font-size: 18px;
    font-weight: 700;
    min-height: 48px;
    min-width: 48px;
    padding: 10px 0;
    position: absolute;
    right: 15px;
    text-align: center;
    text-transform: uppercase;
    top: -25px
}
.snip1527 .date span {
    display: block;
    line-height: 14px
}
.snip1527 .date .month {
    font-size: 11px
}
.snip1527 h3,
.snip1527 p {
    margin: 0;
    padding: 0
}
.snip1527 h3 {
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 5px
}
.snip1527 p {
    font-size: 0.8em;
    line-height: 1.6em;
    margin-bottom: 0px
}
.snip1527 a {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    position: absolute;
    z-index: 1
}
.snip1527:hover img,
.snip1527.hover img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1)
}
img {
    border-radius: 5px
}
img {
    border-radius: 5px
}
</style>

</head>
<body>
<div class="d-flex justify-content-center container mt-5">
    <figure class="snip1527">
        <div class="image"><img src="http://frontendfreecode.com/img/sSuJsu8.jpg" alt="pr-sample23" /></div>
        <figcaption>
            <div class="date"><span class="day">28</span><span class="month">Nov</span></div>
            <h3>
                Acer Aspire 7 Gaming Laptop</h3>
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
        </figcaption> <a href="#"></a>
    </figure>
    <figure class="snip1527 hover">
        <div class="image"><img src="http://frontendfreecode.com/img/E0e8fLV.jpg" alt="pr-sample24" /></div>
        <figcaption>
            <div class="date"><span class="day">17</span><span class="month">Nov</span></div>
            <h3>
                RedmiBook, Mi Laptops Launch</h3>
            <p> laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse </p>
        </figcaption> <a href="#"></a>
    </figure>
    <figure class="snip1527">
        <div class="image"><img src="http://frontendfreecode.com/img/qNV4rMU.jpg" alt="pr-sample25" /></div>
        <figcaption>
            <div class="date"><span class="day">01</span><span class="month">Dec</span></div>
            <h3>Google May Face Antitrust Case</h3>
            <p> Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </p>
        </figcaption> <a href="#"></a>
    </figure>
</div><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>

</body>
</html>
Preview