content logo

Bootstrap Grids:

Product Grids with Flip Effect using Bootstrap

The most crucial factor in an online shop is its design and the pictures of the products. If you have an online shop and are looking for a beautiful form for attracting new customers, carefully pay attention to this post. The Product Grids with Flip Effect using Bootstrap is placed here with a beautiful theme. This Product Grid Code helps you classify and organize all your website products regularly. This Free Grid System Code has a simple design, and the backgrounds of the pictures are white. You can attract many people to your website by using this code.

The preview below represents the product’s names and prices under the pictures. In this code, you can see the previous cost in a gray color and the new one in green. You can also look at the stars of the product that show the customer’s opinion. When you move the mouse on a picture, a flip effect appears, and the image changes, too. This CSS Product Grid Effect is alongside two white icons in the right bottom corner of the photo. The Bootstrap Flip Effect has a green line under the picture with the “ADD TO CART” option.

#

Product Grid Code

#

Bootstrap Flip Effect

#

Free Grid System Code

#

CSS Product 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>
                    <span class="product-sale-label">sale!</span>
                </div>
                <div class="product-content">
                    <h3 class="title"><a href="#">Product 01</a></h3>
                    <ul class="rating">
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                    </ul>
                    <div class="price"><span>$78.99</span> $65.99</div>
                    <a href="#" class="add-cart"><i class="fas fa-plus"></i>Add to cart</a>
                </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>
                </div>
                <div class="product-content">
                    <h3 class="title"><a href="#">Product 02</a></h3>
                    <ul class="rating">
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="far fa-star"></li>
                        <li class="far fa-star"></li>
                    </ul>
                    <div class="price">$60.66</div>
                    <a href="#" class="add-cart"><i class="fas fa-plus"></i>Add to cart</a>
                </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>
                </div>
                <div class="product-content">
                    <h3 class="title"><a href="#">Product 03</a></h3>
                    <ul class="rating">
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="far fa-star"></li>
                    </ul>
                    <div class="price">$75.55</div>
                    <a href="#" class="add-cart"><i class="fas fa-plus"></i>Add to cart</a>
                </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>
                    <span class="product-sale-label">sale!</span>
                </div>
                <div class="product-content">
                    <h3 class="title"><a href="#">Product 04</a></h3>
                    <ul class="rating">
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="far fa-star"></li>
                    </ul>
                    <div class="price"><span>$87.99</span> $73.99</div>
                    <a href="#" class="add-cart"><i class="fas fa-plus"></i>Add to cart</a>
                </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;
    text-align: center;
    position: relative;
}
.product-grid:before {
    content: "";
    background-color: #80b848;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all 0.5s ease-in-out;
}
.product-grid:hover:before {
    transform: scale(1);
}
.product-grid .product-image {
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.product-grid .product-image a.image {
    display: block;
}
.product-grid .product-image a.image:before {
    content: "";
    background-color: rgba(0, 0, 0, 0.3);
    height: 100%;
    width: 100%;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    transition: all 0.2s ease 0s;
}
.product-grid:hover .product-image a.image:before {
    opacity: 1;
}
.product-grid .product-image img {
    width: 100%;
    height: auto;
}
.product-grid .product-image .img-1 {
    opacity: 1;
    transform: rotateY(0);
    transition: all 0.5s ease 0.1s;
}
.product-grid:hover .product-image .img-1 {
    backface-visibility: hidden;
    opacity: 0;
    transform: rotateY(180deg);
}
.product-grid .product-image .img-2 {
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
    opacity: 0;
    backface-visibility: hidden;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    transition: all 0.5s ease 0.1s;
}
.product-grid:hover .product-image .img-2 {
    opacity: 1;
    transform: rotateY(0deg);
}
.product-grid .product-sale-label {
    color: #fff;
    background-color: #f06142;
    font-size: 13px;
    font-weight: 300;
    text-transform: capitalize;
    padding: 2px 25px;
    transform: rotate(45deg);
    position: absolute;
    top: 10px;
    right: -18px;
    z-index: 1;
}
.product-grid .product-links {
    padding: 0;
    margin: 0;
    list-style: none;
    position: absolute;
    bottom: 15px;
    right: -50px;
    z-index: 1;
    transition: all 0.3s ease 0s;
}
.product-grid:hover .product-links {
    right: 15px;
}
.product-grid .product-links li {
    margin: 0 0 10px;
}
.product-grid .product-links li a {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 38px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: block;
    transition: all 0.3s;
}
.product-grid .product-links li a:hover {
    background: #80b848;
    border-color: #80b848;
}
.product-grid .product-content {
    text-align: left;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
}
.product-grid .title {
    font-size: 16px;
    font-weight: 400;
    text-transform: capitalize;
    margin: 0 0 7px;
}
.product-grid .title a {
    color: #333;
    transition: all 0.3s ease 0s;
}
.product-grid .title a:hover {
    color: #ff5252;
}
.product-grid .rating {
    color: #000;
    font-size: 11px;
    padding: 0;
    margin: 0 0 5px;
    list-style: none;
    transition: all 0.3s ease 0s;
}
.product-grid .rating li.far {
    color: #999;
}
.product-grid .price {
    color: #80b848;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease 0s;
}
.product-grid .price span {
    color: #999;
    font-size: 14px;
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 5px;
}
.product-grid:hover .rating,
.product-grid:hover .price {
    opacity: 0;
}
.product-grid .add-cart {
    border: 2px solid #80b848;
    color: #80b848;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    width: 140px;
    padding: 8px 10px;
    border-radius: 50px;
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.5s;
}
.product-grid .add-cart i.fas {
    color: #111;
    margin: 0 5px 0 0;
}
.product-grid .add-cart:hover {
    color: #fff;
    background: #80b848;
}
.product-grid:hover .add-cart {
    bottom: 11px;
}
@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;
    text-align: center;
    position: relative;
}
.product-grid:before {
    content: "";
    background-color: #80b848;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all 0.5s ease-in-out;
}
.product-grid:hover:before {
    transform: scale(1);
}
.product-grid .product-image {
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.product-grid .product-image a.image {
    display: block;
}
.product-grid .product-image a.image:before {
    content: "";
    background-color: rgba(0, 0, 0, 0.3);
    height: 100%;
    width: 100%;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    transition: all 0.2s ease 0s;
}
.product-grid:hover .product-image a.image:before {
    opacity: 1;
}
.product-grid .product-image img {
    width: 100%;
    height: auto;
}
.product-grid .product-image .img-1 {
    opacity: 1;
    transform: rotateY(0);
    transition: all 0.5s ease 0.1s;
}
.product-grid:hover .product-image .img-1 {
    backface-visibility: hidden;
    opacity: 0;
    transform: rotateY(180deg);
}
.product-grid .product-image .img-2 {
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
    opacity: 0;
    backface-visibility: hidden;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    transition: all 0.5s ease 0.1s;
}
.product-grid:hover .product-image .img-2 {
    opacity: 1;
    transform: rotateY(0deg);
}
.product-grid .product-sale-label {
    color: #fff;
    background-color: #f06142;
    font-size: 13px;
    font-weight: 300;
    text-transform: capitalize;
    padding: 2px 25px;
    transform: rotate(45deg);
    position: absolute;
    top: 10px;
    right: -18px;
    z-index: 1;
}
.product-grid .product-links {
    padding: 0;
    margin: 0;
    list-style: none;
    position: absolute;
    bottom: 15px;
    right: -50px;
    z-index: 1;
    transition: all 0.3s ease 0s;
}
.product-grid:hover .product-links {
    right: 15px;
}
.product-grid .product-links li {
    margin: 0 0 10px;
}
.product-grid .product-links li a {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 38px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: block;
    transition: all 0.3s;
}
.product-grid .product-links li a:hover {
    background: #80b848;
    border-color: #80b848;
}
.product-grid .product-content {
    text-align: left;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
}
.product-grid .title {
    font-size: 16px;
    font-weight: 400;
    text-transform: capitalize;
    margin: 0 0 7px;
}
.product-grid .title a {
    color: #333;
    transition: all 0.3s ease 0s;
}
.product-grid .title a:hover {
    color: #ff5252;
}
.product-grid .rating {
    color: #000;
    font-size: 11px;
    padding: 0;
    margin: 0 0 5px;
    list-style: none;
    transition: all 0.3s ease 0s;
}
.product-grid .rating li.far {
    color: #999;
}
.product-grid .price {
    color: #80b848;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease 0s;
}
.product-grid .price span {
    color: #999;
    font-size: 14px;
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 5px;
}
.product-grid:hover .rating,
.product-grid:hover .price {
    opacity: 0;
}
.product-grid .add-cart {
    border: 2px solid #80b848;
    color: #80b848;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    width: 140px;
    padding: 8px 10px;
    border-radius: 50px;
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.5s;
}
.product-grid .add-cart i.fas {
    color: #111;
    margin: 0 5px 0 0;
}
.product-grid .add-cart:hover {
    color: #fff;
    background: #80b848;
}
.product-grid:hover .add-cart {
    bottom: 11px;
}
@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>
                    <span class="product-sale-label">sale!</span>
                </div>
                <div class="product-content">
                    <h3 class="title"><a href="#">Product 01</a></h3>
                    <ul class="rating">
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                    </ul>
                    <div class="price"><span>$78.99</span> $65.99</div>
                    <a href="#" class="add-cart"><i class="fas fa-plus"></i>Add to cart</a>
                </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>
                </div>
                <div class="product-content">
                    <h3 class="title"><a href="#">Product 02</a></h3>
                    <ul class="rating">
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="far fa-star"></li>
                        <li class="far fa-star"></li>
                    </ul>
                    <div class="price">$60.66</div>
                    <a href="#" class="add-cart"><i class="fas fa-plus"></i>Add to cart</a>
                </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>
                </div>
                <div class="product-content">
                    <h3 class="title"><a href="#">Product 03</a></h3>
                    <ul class="rating">
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="far fa-star"></li>
                    </ul>
                    <div class="price">$75.55</div>
                    <a href="#" class="add-cart"><i class="fas fa-plus"></i>Add to cart</a>
                </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>
                    <span class="product-sale-label">sale!</span>
                </div>
                <div class="product-content">
                    <h3 class="title"><a href="#">Product 04</a></h3>
                    <ul class="rating">
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="fas fa-star"></li>
                        <li class="far fa-star"></li>
                    </ul>
                    <div class="price"><span>$87.99</span> $73.99</div>
                    <a href="#" class="add-cart"><i class="fas fa-plus"></i>Add to cart</a>
                </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