Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    How to make Crazy Stunt Loading Animation using HTML & CSS

    27 August 2025

    How to make Iconic Magic Tab Bar using HTML & CSS

    23 August 2025

    How to make Glowing Animated Search Bar using HTML & CSS

    21 August 2025
    Facebook X (Twitter) Instagram YouTube Telegram Threads
    Coding StellaCoding Stella
    • Home
    • Blog
    • HTML & CSS
      • Login Form
    • JavaScript
    • Hire us!
    Coding StellaCoding Stella
    Home - HTML & CSS - How to make Shoes Product Card Animation using HTML & CSS
    HTML & CSS

    How to make Shoes Product Card Animation using HTML & CSS

    Coding StellaBy Coding Stella1 March 2025No Comments4 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Email WhatsApp Copy Link

    Let’s create a stylish and interactive Shoes Product Card using HTML and CSS! This card will not only showcase a shoe’s image, name, and price but will also feature cool hover animations like image scaling, smooth text transitions, and glowing effects.

    We’ll use HTML to build the card’s structure and CSS to add attractive designs and animations. This project is perfect for learning how to create modern UI elements and add interactive effects without JavaScript. Let’s make your product cards look amazing!

    HTML :

    This HTML creates a stylish shoe product card layout with images, product names, old and new prices, and interactive heart and cart icons — it uses a grid system for alignment and links to an external CSS file for styling and animations.

    <!DOCTYPE html>
    <html lang="en" >
    <head>
      <meta charset="UTF-8">
      <title>Shoes Product Card Animation</title>
      <link rel="stylesheet" href="./style.css">
    
    </head>
    <body>
    
        <h1 class="title-shop">SHOP</h1>
        <main class="main bd-grid">
            <article class="card">
                <div class="card-img">
                    <img src="/images/img1.png" alt="image">
                </div>
    
                <div class="card-name">
                    <p>AIR ZOOM PEGASUS</p>
                </div>
    
                <div class="card-prices">
                    <a href="#" class="card-icon"><ion-icon name="heart-outline"></ion-icon></a>
                    <div>
                        <span class="card-price card-price-before">$990.00</span>
                        <span class="card-price card-price-now">$749.00</span>
                    </div>
                    <a href="#" class="card-icon"><ion-icon name="cart-outline"></ion-icon></a>
                </div>
            </article>
    
            <article class="card">
                <div class="card-img">
                    <img src="/images/img2.png" alt="image">
                </div>
    
                <div class="card-name">
                    <p>AIR ZOOM PEGASUS</p>
                </div>
    
                <div class="card-prices">
                    <a href="#" class="card-icon"><ion-icon name="heart-outline"></ion-icon></a>
                    <div>
                        <span class="card-price card-price-before">$990.00</span>
                        <span class="card-price card-price-now">$749.00</span>
                    </div>
                    <a href="#" class="card-icon"><ion-icon name="cart-outline"></ion-icon></a>
                </div>
            </article>
    
            <article class="card">
                <div class="card-img">
                    <img src="/images/img3.png" alt="image">
                </div>
    
                <div class="card-name">
                    <p>AIR ZOOM PEGASUS</p>
                </div>
    
                <div class="card-prices">
                    <a href="#" class="card-icon"><ion-icon name="heart-outline"></ion-icon></a>
                    <div>
                        <span class="card-price card-price-before">$990.00</span>
                        <span class="card-price card-price-now">$749.00</span>
                    </div>
                    <a href="#" class="card-icon"><ion-icon name="cart-outline"></ion-icon></a>
                </div>
            </article>
    
            <article class="card">
                <div class="card-img">
                    <img src="/images/img4.png" alt="image">
                </div>
    
                <div class="card-name">
                    <p>AIR ZOOM PEGASUS</p>
                </div>
    
                <div class="card-prices">
                    <a href="#" class="card-icon"><ion-icon name="heart-outline"></ion-icon></a>
                    <div>
                        <span class="card-price card-price-before">$990.00</span>
                        <span class="card-price card-price-now">$749.00</span>
                    </div>
                    <a href="#" class="card-icon"><ion-icon name="cart-outline"></ion-icon></a>
                </div>
            </article>
        </main>
    
        <script type="module" src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js"></script>
        <script nomodule src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js"></script>
    </body>
    </html>

    CSS :

    This CSS code creates a clean, responsive product card layout with a modern design — it imports the “Open Sans” font, sets global color and font-size variables, and defines a grid system for aligning elements; the card has hover effects like shadow, image rotation, and smooth transitions, with different background colors for each card and nicely styled pricing details.

    @import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");
    
    :root {
      --first-color: #fcf1ff;
      --second-color: #e3f8ff;
      --third-color: #ffe8df;
      --forth-color: #e0dfff;
      --accent-color: #ff5151;
      --dark-color: #161616;
    
      --body-font: "Open Sans";
      --h1-font-size: 1.5rem;
      --h3-font-size: 1rem;
      --normal-font-size: 0.938rem;
      --smaller-font-size: 0.75rem;
    }
    
    @media screen and (min-width: 768px) {
      :root {
        --h1-font-size: 2rem;
        --normal-font-size: 1rem;
        --smaller-font-size: 0.813rem;
      }
    }
    
    *,
    ::after,
    ::before {
      box-sizing: border-box;
    }
    
    body {
      margin: 2rem 0 0 0;
      background-color: #fff;
      color: var(--dark-color);
      font-family: var(--body-font);
    }
    
    img {
      max-width: 100%;
      height: auto;
    }
    
    a {
      text-decoration: none;
    }
    
    main {
      padding: 2rem 0;
    }
    
    .bd-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      max-width: 1200px;
      margin-left: 2.5rem;
      margin-right: 2.5rem;
      align-items: center;
      gap: 2rem;
    }
    
    .title-shop {
      position: relative;
      margin: 0 2.5rem;
    }
    
    .title-shop::after {
      content: "";
      position: absolute;
      top: 50%;
      width: 72px;
      height: 2px;
      background-color: var(--dark-color);
      margin-left: 0.25rem;
    }
    
    .card {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 1.5rem 2rem;
      border-radius: 1rem;
      overflow: hidden;
    }
    
    .card:hover {
      box-shadow: 0 0.5rem 1rem #d1d9e6;
    }
    
    .card:hover .card-name {
      left: 0;
    }
    
    .card:hover .card-img {
      transform: rotate(30deg);
      margin-left: 3.5rem;
    }
    
    .card:hover .card-prices {
      margin-left: 3.5rem;
      padding: 0 1.5rem;
    }
    
    article:nth-child(1) {
      background-color: var(--first-color);
    }
    article:nth-child(2) {
      background-color: var(--second-color);
    }
    article:nth-child(3) {
      background-color: var(--third-color);
    }
    article:nth-child(4) {
      background-color: var(--forth-color);
    }
    
    .card-img {
      width: 180px;
      height: auto;
      padding: 3rem 0;
      transition: 0.5s;
    }
    
    .card-name {
      position: absolute;
      left: -25%;
      top: 0;
      width: 3.5rem;
      height: 100%;
      text-align: center;
      writing-mode: vertical-rl;
      transform: rotate(180deg);
      background-color: var(--dark-color);
      color: #fff;
      font-weight: bold;
      transition: 0.5s;
    }
    
    .card-icon {
      font-size: 1.5rem;
      color: var(--dark-color);
    }
    
    .card-icon:hover {
      color: var(--accent-color);
    }
    
    .card-prices {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: 0.5s;
    }
    
    .card-price {
      display: block;
      text-align: center;
    }
    
    .card-price-before {
      font-size: var(--smaller-font-size);
      color: var(--accent-color);
      margin-bottom: 0.25rem;
      text-decoration: line-through;
    }
    
    .card-price-now {
      font-size: var(--h3-font-size);
      font-weight: bold;
    }
    
    @media screen and (min-width: 1200px) {
      body {
        margin: 3rem 0 0 0;
      }
    
      .title-shop {
        margin: 0.5rem;
      }
    
      .bd-grid {
        margin-left: auto;
        margin-right: auto;
      }
    }

    With just HTML and CSS, we’ve built a sleek and animated Shoes Product Card that’s perfect for e-commerce websites. The smooth hover effects make it more engaging and visually appealing. You can customize it with different styles and products to fit your website’s theme. Keep creating and keep learning! 🥳👟

    If your project has problems, don’t worry. Just click to download the source code and face your coding challenges with excitement. Have fun coding!

    loader
    Share. Copy Link Twitter Facebook LinkedIn Email WhatsApp
    Previous ArticleHow to make Glowing Animated Login Form using HTML & CSS
    Next Article How to make Login and Registration Form using HTML CSS & JavaScript
    Coding Stella
    • Website

    Related Posts

    HTML & CSS

    How to make Crazy Stunt Loading Animation using HTML & CSS

    27 August 2025
    HTML & CSS

    How to make Iconic Magic Tab Bar using HTML & CSS

    23 August 2025
    HTML & CSS

    How to make Glowing Animated Search Bar using HTML & CSS

    21 August 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Trending Post

    Master Frontend in 100 Days Ebook

    2 March 202427K Views

    How to make Modern Login Form using HTML & CSS | Glassmorphism

    11 January 202423K Views

    How to make I love you Animation in HTML CSS & JavaScript

    14 February 202419K Views

    How to make Valentine’s Day Card using HTML & CSS

    13 February 202413K Views
    Follow Us
    • Instagram
    • Facebook
    • YouTube
    • Twitter
    ads
    Featured Post

    Learn CSS By Playing Games

    26 January 2024

    How to create Newton’s Sun and Moon Loading Animation using HTML CSS and JS

    5 July 2025

    10 HTML Tips and Tricks Every Developer Should Know

    27 January 2024

    How to make Flip A Coin using HTML CSS & JavaScript

    11 April 2024
    Latest Post

    How to make Crazy Stunt Loading Animation using HTML & CSS

    27 August 2025

    How to make Iconic Magic Tab Bar using HTML & CSS

    23 August 2025

    How to make Glowing Animated Search Bar using HTML & CSS

    21 August 2025

    How to make Animated Pepsi Product Card using HTML & CSS

    19 August 2025
    Facebook X (Twitter) Instagram YouTube
    • About Us
    • Privacy Policy
    • Return and Refund Policy
    • Terms and Conditions
    • Contact Us
    • Buy me a coffee
    © 2025 Coding Stella. Made with 💙 by @coding.stella

    Type above and press Enter to search. Press Esc to cancel.

    Ad Blocker Enabled!
    Ad Blocker Enabled!
    Looks like you're using an ad blocker. We rely on advertising to help fund our site.
    Okay! I understood