Product Card Design Cards Css

 Product Card Design Html Css Codepen





  


<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Html VS CSS</title>
    <style>
        /* Google Fonts Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
*{
  margin0;
  padding0;
  box-sizingborder-box;
  font-family'Poppins'sans-serif;
}

body{
  height100vh;
  displayflex;
  align-itemscenter;
  justify-contentcenter;
  background-imagelinear-gradient(135deg#43CBFF 10%#9708CC 100%);
}
.product-card {
  positionrelative;
  max-width355px;
  width100%;
  border-radius25px;
  padding20px 30px 30px 30px;
  background#fff;
  box-shadow0 5px 10px rgba(0000.2);
  z-index3;
  overflowhidden;
  margin-right20px;
}
.product-card .logo-cart{
  displayflex;
  align-itemscenter;
  justify-contentspace-between;
}
.product-card .logo-cart img{
  height60px;
  width60px;
  object-fitcover;
}
.product-card .logo-cart i{
  font-size27px;
  color#707070;
  cursorpointer;
  transitioncolor 0.3s ease;
}
.product-card .logo-cart i:hover{
  color#333;
}
.product-card .main-images{
  positionrelative;
  height210px;
}
.product-card .main-images img{
  positionabsolute;
  height300px;
  width300px;
  object-fitcover;
  transformrotate(18deg);
  left12px;
  top-40px;
  z-index-1;
  opacity0;
  transition: opacity 0.5s ease;
}
.product-card .main-images img.active{
  opacity1;
}
.product-card .shoe-details .shoe_name{
  font-size24px;
  font-weight500;
  color#161616;
}
.product-card .shoe-details p{
  font-size12px;
  font-weight400;
  color#333;
  text-alignjustify;
}
.product-card .shoe-details .stars i{
  margin0 -1px;
  color#333;
}
.product-card .color-price .color-option{
  displayflex;
  align-itemscenter;
}
.color-price{
  displayflex;
  justify-contentspace-between;
  align-itemscenter;
  margin-top10px;
}
.color-price .color-option .color{
  font-size18px;
  font-weight500;
  color#333;
  margin-right8px;
}
.color-option  .circles{
  displayflex;
}
.color-option  .circles .circle{
  height18px;
  width18px;
  background#0071C7;
  border-radius50%;
  margin0 4px;
  cursorpointer;
  transitionall 0.4s ease;
}
.color-option  .circles .circle.blue.active{
  box-shadow0 0 0 2px #fff,
               0 0 0 4px #0071C7;
}
.color-option  .circles .circle.pink{
  background#FA1795;
}
.color-option  .circles .circle.pink.active{
  box-shadow0 0 0 2px #fff,
               0 0 0 4px #FA1795;
}
.color-option  .circles .circle.yellow{
  background#F5DA00;
}
.color-option  .circles .circle.yellow.active{
  box-shadow0 0 0 2px #fff,
               0 0 0 4px #F5DA00;
}
.color-price .price{
  displayflex;
  flex-directioncolumn;
  justify-contentcenter;
  align-itemscenter;
}
.color-price .price .price_num{
  font-size25px;
  font-weight600;
  color#707070;
}
.color-price .price .price_letter{
  font-size10px;
  font-weight600;
  margin-top-4px;
  color#707070;
}
.product-card .button{
  positionrelative;
  height50px;
  width100%;
  border-radius25px;
  margin-top30px;
  overflowhidden;
}
.product-card .button .button-layer{
  positionabsolute;
  height100%;
  width300%;
  left-100%;
  background-imagelinear-gradient(135deg,#9708CC#43CBFF,#9708CC#43CBFF );
  transitionall 0.4s ease;
  border-radius25PX;
}
.product-card .button:hover .button-layer{
  left0;
}
.product-card .button button{
  positionrelative;
  height100%;
  width100%;
  backgroundnone;
  outlinenone;
  bordernone;
  font-size18px;
  font-weight600;
  letter-spacing1px;
  color#fff;
  margin-right20px;
}

    </style>
</head>
<body>
    <div class="product-card">
        <div class="logo-cart">
          <img src="https://fadzrinmadu.github.io/hosted-assets/animated-product-card-using-html-css-and-javascript/logo.jpg" alt="logo">
          <i class='bx bx-shopping-bag'></i>
        </div>
        <div class="main-images">
          <img id="blue" class="blue active" src="https://fadzrinmadu.github.io/hosted-assets/animated-product-card-using-html-css-and-javascript/blue.png" alt="blue">
          <img id="pink" class="pink" src="https://fadzrinmadu.github.io/hosted-assets/animated-product-card-using-html-css-and-javascript/pink.png" alt="blue">
          <img id="yellow" class="yellow" src="https://fadzrinmadu.github.io/hosted-assets/animated-product-card-using-html-css-and-javascript/yellow.png" alt="blue">
        </div>
        <div class="shoe-details">
          <span class="shoe_name">ADDIDAS GAZE ZX</span>
          <p>Lorem ipsum dolor sit lorenm i amet, consectetur adipisicing elit. Eum, ea, ducimus!</p>
          <div class="stars">
            <i class='bx bxs-star' ></i>
            <i class='bx bxs-star' ></i>
            <i class='bx bxs-star' ></i>
            <i class='bx bxs-star' ></i>
            <i class='bx bx-star' ></i>
          </div>
        </div>
        <div class="color-price">
          <div class="color-option">
            <span class="color">Colour:</span>
            <div class="circles">
              <span class="circle blue active"  id="blue"></span>
              <span class="circle pink " id="pink"></span>
              <span class="circle yellow " id="yellow"></span>
            </div>
          </div>
          <div class="price">
            <span class="price_num">$09.00</span>
            <span class="price_letter">Nine dollar only</span>
          </div>
        </div>
        <div class="button">
          <div class="button-layer"></div>
          <button>Add To Cart</button>
        </div>
      </div>

      <div class="product-card">
        <div class="logo-cart">
          <img src="https://fadzrinmadu.github.io/hosted-assets/animated-product-card-using-html-css-and-javascript/logo.jpg" alt="logo">
          <i class='bx bx-shopping-bag'></i>
        </div>
        <div class="main-images">
          <img id="blue" class="blue active" src="https://fadzrinmadu.github.io/hosted-assets/animated-product-card-using-html-css-and-javascript/blue.png" alt="blue">
          <img id="pink" class="pink" src="https://fadzrinmadu.github.io/hosted-assets/animated-product-card-using-html-css-and-javascript/pink.png" alt="blue">
          <img id="yellow" class="yellow" src="https://fadzrinmadu.github.io/hosted-assets/animated-product-card-using-html-css-and-javascript/yellow.png" alt="blue">
        </div>
        <div class="shoe-details">
          <span class="shoe_name">ADDIDAS GAZE ZX</span>
          <p>Lorem ipsum dolor sit lorenm i amet, consectetur adipisicing elit. Eum, ea, ducimus!</p>
          <div class="stars">
            <i class='bx bxs-star' ></i>
            <i class='bx bxs-star' ></i>
            <i class='bx bxs-star' ></i>
            <i class='bx bxs-star' ></i>
            <i class='bx bx-star' ></i>
          </div>
        </div>
        <div class="color-price">
          <div class="color-option">
            <span class="color">Colour:</span>
            <div class="circles">
              <span class="circle blue active"  id="blue"></span>
              <span class="circle pink " id="pink"></span>
              <span class="circle yellow " id="yellow"></span>
            </div>
          </div>
          <div class="price">
            <span class="price_num">$09.00</span>
            <span class="price_letter">Nine dollar only</span>
          </div>
        </div>
        <div class="button">
          <div class="button-layer"></div>
          <button>Add To Cart</button>
        </div>
      </div>




      <script>
        let circle = document.querySelector(".color-option");

        circle.addEventListener("click", (e)=>{
          let target = e.target;
          if(target.classList.contains("circle")){
            circle.querySelector(".active").classList.remove("active");
            target.classList.add("active");
            document.querySelector(".main-images .active").classList.remove("active");
            document.querySelector(`.main-images .${target.id}`).classList.add("active");
          }
        });
      </script>
</body>
</html>

How To Use This Cord

steps

  1. Fast One Copy Html File.
  2. Copy CSS File And Past Head Part Top Fo Html File.  
  3. File Save Name.html
  4. Ran Html File 
  5. Ready To Use
Solve This Problem 
  • Css Card Design
  • Product Card
  • Product Card Designs
  • Product Card Ui
  • Product Card Template
  • Product Card Design Css
  • Product Card Html Css

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.