content logo

Bootstrap Grids:

Bootstrap Product Grids with Centered Buttons and Hover Effect

You probably have seen online shops with a website for selling products. These websites make the job's owners more comfortable. In this post, you can see the Bootstrap Product Grids with Centered Buttons and Hover Effect for this job. This Grids Code with Buttons looks specific and can attract anyone's attention. By looking at the following CSS Product Grid, you can see its white and simple background.

As the preview appears, the product's name and its price are placed at the middle and bottom of the picture. You cannot see any other elements in this Free Bootstrap Grid before you place the cursor of the mouse on them. As soon as you move the mouse or click on a specific image product, the picture will change with a smooth effect. In this process, you can see the other side of the product. When this Bootstrap Grid Effect becomes visible, some elements appear, too. The options "Quick View" and "Add to cart" will be sown in the center of the page in a white field. In this Bootstrap Products Grid Systems, there are two black icons on the right side of the pictures.

#

Bootstrap Products Grid Systems

#

Grids Code with Buttons

#

Free Bootstrap Grid

#

CSS Product Grid

#

Bootstrap Grid Effect

<!-- This script got from frontendfreecode.com -->
<div class="container">
    <div class="row">
        <div class="col-md-3 col-sm-6">
            <div class="product-grid">
                <div class="product-image">
                    <a href="#" class="image">
                        <img class="img-1" src="http://frontendfreecode.com/img/Bootstrap-Product-Grid-01.jpg" />
                        <img class="img-2" src="http://frontendfreecode.com/img/Bootstrap-Product-Grid-02.jpg" />
                    </a>
                    <ul class="product-links">
                        <li>
                            <a href="#"><i class="fa fa-heart"></i></a>
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-random"></i></a>
                        </li>
                    </ul>
                    <a href="#" class="product-view">Quick View</a>
                    <a href="#" class="add-cart">Add to cart</a>
                </div>
                <div class="product-content">
                    <h3 class="title"><a href="#">Product 01</a></h3>
                    <div class="price">$65.99</div>
                </div>
            </div>
        </div>
        <div class="col-md-3 col-sm-6">
            <div class="product-grid">
                <div class="product-image">
                    <a href="#" class="image">
                        <img class="img-1" src="http://frontendfreecode.com/img/Bootstrap-Product-Grid-03.jpg" />
                        <img class="img-2" src="http://frontendfreecode.com/img/Bootstrap-Product-Grid-04.jpg" />
                    </a>
                    <ul class="product-links">
                        <li>
                            <a href="#"><i class="fa fa-heart"></i></a>
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-random"></i></a>
                        </li>
                    </ul>
                    <a href="#" class="product-view">Quick View</a>
                    <a href="#" class="add-cart">Add to cart</a>
                </div>
                <div class="product-content">
                    <h3 class="title"><a href="#">Product 02</a></h3>
                    <div class="price">$55.99</div>
                </div>
            </div>
        </div>
        <div class="col-md-3 col-sm-6">
            <div class="product-grid">
                <div class="product-image">
                    <a href="#" class="image">
                        <img class="img-1" src="http://frontendfreecode.com/img/Bootstrap-Product-Grid-05.jpg" />
                        <img class="img-2" src="http://frontendfreecode.com/img/Bootstrap-Product-Grid-06.jpg" />
                    </a>
                    <ul class="product-links">
                        <li>
                            <a href="#"><i class="fa fa-heart"></i></a>
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-random"></i></a>
                        </li>
                    </ul>
                    <a href="#" class="product-view">Quick View</a>
                    <a href="#" class="add-cart">Add to cart</a>
                </div>
                <div class="product-content">
                    <h3 class="title"><a href="#">Product 03</a></h3>
                    <div class="price">$61.11</div>
                </div>
            </div>
        </div>
        <div class="col-md-3 col-sm-6">
            <div class="product-grid">
                <div class="product-image">
                    <a href="#" class="image">
                        <img class="img-1" src="http://frontendfreecode.com/img/Bootstrap-Product-Grid-07.jpg" />
                        <img class="img-2" src="http://frontendfreecode.com/img/Bootstrap-Product-Grid-08.jpg" />
                    </a>
                    <ul class="product-links">
                        <li>
                            <a href="#"><i class="fa fa-heart"></i></a>
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-random"></i></a>
                        </li>
                    </ul>
                    <a href="#" class="product-view">Quick View</a>
                    <a href="#" class="add-cart">Add to cart</a>
                </div>
                <div class="product-content">
                    <h3 class="title"><a href="#">Product 04</a></h3>
                    <div class="price">$75.99</div>
                </div>
            </div>
        </div>
    </div>
</div><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
body {
    margin:20px;
}
.product-grid {
    font-family: "Poppins", sans-serif;
}
.product-grid .product-image {
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.product-grid .product-image a.image {
    display: block;
}
.product-grid .product-image img {
    width: 100%;
    height: auto;
}
.product-grid .product-image .img-1 {
    transition: all 0.5s ease 0s;
}
.product-grid:hover .product-image .img-1 {
    opacity: 0;
}
.product-grid .product-image .img-2 {
    width: 100%;
    height: 100%;
    opacity: 0;
    backface-visibility: hidden;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    transition: all 0.5s ease 0s;
}
.product-grid:hover .product-image .img-2 {
    opacity: 1;
}
.product-grid .product-view,
.product-grid .add-cart {
    color: #555;
    background: #fff;
    font-size: 14px;
    padding: 11px 17px 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(-50%) translateY(-50%);
    position: absolute;
    top: 70%;
    left: 50%;
    transition: all 0.5s ease;
}
.product-grid:hover .product-view {
    opacity: 1;
    top: calc(50% - 28px);
}
.product-grid:hover .add-cart {
    opacity: 1;
    top: calc(50% + 28px);
}
.product-grid .product-view:hover,
.product-grid .add-cart:hover {
    color: #fff;
    background: #333;
}
.product-grid .product-links {
    padding: 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 1;
}
.product-grid:hover .product-links {
    opacity: 1;
}
.product-grid .product-links li {
    margin: 7px 0;
}
.product-grid .product-links li a {
    color: #555;
    font-size: 16px;
    transition: all 0.4s ease;
}
.product-grid .product-links li a:hover {
    color: #0775c0;
}
.product-grid .product-content {
    text-align: center;
    padding: 15px;
}
.product-grid .title {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}
.product-grid .title a {
    color: #333;
    transition: all 0.3s ease 0s;
}
.product-grid .title a:hover {
    color: #0775c0;
}
.product-grid .price {
    color: #555;
    font-size: 15px;
    font-weight: 400;
}
@media screen and (max-width: 990px) {
    .product-grid {
        margin-bottom: 30px;
    }
}
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<style>
body {
    margin:20px;
}
.product-grid {
    font-family: "Poppins", sans-serif;
}
.product-grid .product-image {
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.product-grid .product-image a.image {
    display: block;
}
.product-grid .product-image img {
    width: 100%;
    height: auto;
}
.product-grid .product-image .img-1 {
    transition: all 0.5s ease 0s;
}
.product-grid:hover .product-image .img-1 {
    opacity: 0;
}
.product-grid .product-image .img-2 {
    width: 100%;
    height: 100%;
    opacity: 0;
    backface-visibility: hidden;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    transition: all 0.5s ease 0s;
}
.product-grid:hover .product-image .img-2 {
    opacity: 1;
}
.product-grid .product-view,
.product-grid .add-cart {
    color: #555;
    background: #fff;
    font-size: 14px;
    padding: 11px 17px 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(-50%) translateY(-50%);
    position: absolute;
    top: 70%;
    left: 50%;
    transition: all 0.5s ease;
}
.product-grid:hover .product-view {
    opacity: 1;
    top: calc(50% - 28px);
}
.product-grid:hover .add-cart {
    opacity: 1;
    top: calc(50% + 28px);
}
.product-grid .product-view:hover,
.product-grid .add-cart:hover {
    color: #fff;
    background: #333;
}
.product-grid .product-links {
    padding: 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 1;
}
.product-grid:hover .product-links {
    opacity: 1;
}
.product-grid .product-links li {
    margin: 7px 0;
}
.product-grid .product-links li a {
    color: #555;
    font-size: 16px;
    transition: all 0.4s ease;
}
.product-grid .product-links li a:hover {
    color: #0775c0;
}
.product-grid .product-content {
    text-align: center;
    padding: 15px;
}
.product-grid .title {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}
.product-grid .title a {
    color: #333;
    transition: all 0.3s ease 0s;
}
.product-grid .title a:hover {
    color: #0775c0;
}
.product-grid .price {
    color: #555;
    font-size: 15px;
    font-weight: 400;
}
@media screen and (max-width: 990px) {
    .product-grid {
        margin-bottom: 30px;
    }
}
</style>

</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-3 col-sm-6">
            <div class="product-grid">
                <div class="product-image">
                    <a href="#" class="image">
                        <img class="img-1" src="http://frontendfreecode.com/img/Bootstrap-Product-Grid-01.jpg" />
                        <img class="img-2" src="http://frontendfreecode.com/img/Bootstrap-Product-Grid-02.jpg" />
                    </a>
                    <ul class="product-links">
                        <li>
                            <a href="#"><i class="fa fa-heart"></i></a>
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-random"></i></a>
                        </li>
                    </ul>
                    <a href="#" class="product-view">Quick View</a>
                    <a href="#" class="add-cart">Add to cart</a>
                </div>
                <div class="product-content">
                    <h3 class="title"><a href="#">Product 01</a></h3>
                    <div class="price">$65.99</div>
                </div>
            </div>
        </div>
        <div class="col-md-3 col-sm-6">
            <div class="product-grid">
                <div class="product-image">
                    <a href="#" class="image">
                        <img class="img-1" src="http://frontendfreecode.com/img/Bootstrap-Product-Grid-03.jpg" />
                        <img class="img-2" src="http://frontendfreecode.com/img/Bootstrap-Product-Grid-04.jpg" />
                    </a>
                    <ul class="product-links">
                        <li>
                            <a href="#"><i class="fa fa-heart"></i></a>
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-random"></i></a>
                        </li>
                    </ul>
                    <a href="#" class="product-view">Quick View</a>
                    <a href="#" class="add-cart">Add to cart</a>
                </div>
                <div class="product-content">
                    <h3 class="title"><a href="#">Product 02</a></h3>
                    <div class="price">$55.99</div>
                </div>
            </div>
        </div>
        <div class="col-md-3 col-sm-6">
            <div class="product-grid">
                <div class="product-image">
                    <a href="#" class="image">
                        <img class="img-1" src="http://frontendfreecode.com/img/Bootstrap-Product-Grid-05.jpg" />
                        <img class="img-2" src="http://frontendfreecode.com/img/Bootstrap-Product-Grid-06.jpg" />
                    </a>
                    <ul class="product-links">
                        <li>
                            <a href="#"><i class="fa fa-heart"></i></a>
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-random"></i></a>
                        </li>
                    </ul>
                    <a href="#" class="product-view">Quick View</a>
                    <a href="#" class="add-cart">Add to cart</a>
                </div>
                <div class="product-content">
                    <h3 class="title"><a href="#">Product 03</a></h3>
                    <div class="price">$61.11</div>
                </div>
            </div>
        </div>
        <div class="col-md-3 col-sm-6">
            <div class="product-grid">
                <div class="product-image">
                    <a href="#" class="image">
                        <img class="img-1" src="http://frontendfreecode.com/img/Bootstrap-Product-Grid-07.jpg" />
                        <img class="img-2" src="http://frontendfreecode.com/img/Bootstrap-Product-Grid-08.jpg" />
                    </a>
                    <ul class="product-links">
                        <li>
                            <a href="#"><i class="fa fa-heart"></i></a>
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-random"></i></a>
                        </li>
                    </ul>
                    <a href="#" class="product-view">Quick View</a>
                    <a href="#" class="add-cart">Add to cart</a>
                </div>
                <div class="product-content">
                    <h3 class="title"><a href="#">Product 04</a></h3>
                    <div class="price">$75.99</div>
                </div>
            </div>
        </div>
    </div>
</div><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>

</body>
</html>
Preview