Close Menu

    Subscribe to Updates

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

    What's Hot

    How to make Doomsday 3D Card Hover Animation using HTML & CSS

    30 November 2026

    How to make Interactive Wardrobe Rail using HTML CSS & JavaScript

    28 November 2026

    How to make Shredder Delete Button using HTML CSS & JavaScript

    23 November 2026
    Facebook X (Twitter) Instagram YouTube Telegram Threads
    Coding StellaCoding Stella
    • Home
    • Blog
    • HTML & CSS
      • Login Form
    • JavaScript
    • Hire us!
    Coding StellaCoding Stella
    Home » How to make Doomsday 3D Card Hover Animation using HTML & CSS
    JavaScript

    How to make Doomsday 3D Card Hover Animation using HTML & CSS

    Coding StellaBy Coding Stella30 November 2026No Comments3 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Email WhatsApp Copy Link

    Let’s create a Doomsday 3D Card Hover Animation using HTML and CSS – a dark, smoky character card where Doctor Doom steps out of the frame when you hover over it, while the card tilts back in 3D and his name flips up below.

    • HTML: Create a simple figure card with the Doctor Doom image inside it and a figcaption for his name.
    • CSS: Style the smoky background, the card scene, the 3D tilt with perspective and rotateX, the pop-out effect on the character and the flipping name plate, all with smooth transitions.

    This project teaches how to build a 3D card hover animation using HTML and CSS by combining CSS Grid stacking, perspective and rotateX transforms, object-fit image cropping and a ::before pseudo-element for the card background.

    HTML :

    HTML: Creates the structure of the card with a figure element that holds the Doctor Doom image and a figcaption with his name, and links the Cinzel font and the stylesheet.

    <!DOCTYPE html>
    <html lang="en">
    
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Doomsday 3D Card | @coding.stella</title>
        <link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@900&display=swap" rel="stylesheet">
        <link rel="stylesheet" href="./style.css">
    </head>
    
    <body>
    
        <figure>
            <img src="./images/doom.png" alt="Doctor Doom">
            <figcaption>Doctor Doom</figcaption>
        </figure>
    
    </body>
    </html>

    CSS :

    CSS: Sets the smoky page background, uses ::before for the card scene, stacks the image and name with CSS Grid, and on hover tilts the scene back with rotateX(60deg), grows the character out of the card and flips the name plate into view.

    body {
      --size: min(260px, 33vw, 30vh);
      margin: 0;
      min-height: 100vh;
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: var(--size);
      place-content: end center;
      background:
        linear-gradient(#0000, rgb(5 12 8 / 88%)),
        url(./images/bg.jpg) center/cover;
    }
    
    figure {
      width: 100%;
      aspect-ratio: 1;
      margin: 0 0 60px;
      padding: 5px 20px 0;
      box-sizing: border-box;
      display: grid;
      grid-template-rows: 100%;
      grid-template-columns: 100%;
      cursor: pointer;
      position: relative;
      filter: drop-shadow(0 0 20px rgb(0 0 0 / 50%));
    }
    
    figure::before {
      content: "";
      position: absolute;
      z-index: -1;
      inset: 0;
      background: url(./images/doom-back.jpg) center/cover;
      transform-origin: bottom;
      filter: brightness(.9);
      transition: .5s;
    }
    
    img {
      grid-area: 1/1;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top;
      filter: contrast(.8) brightness(.7);
      place-self: end center;
      transition: .5s;
    }
    
    figcaption {
      grid-area: 1/1;
      width: calc(100% + 40px);
      font-family: "Cinzel", serif;
      font-weight: 900;
      color: #fff;
      font-size: min(26px, 4.2vmin);
      white-space: nowrap;
      text-align: center;
      place-self: end center;
      transform: perspective(500px) translateY(100%) rotateX(-90deg);
      backface-visibility: hidden;
      transform-origin: top;
      background: #000;
      transition: .5s;
    }
    
    figure:hover img {
      width: calc((var(--size) - 5px) * 1.13);
      height: calc((var(--size) - 5px) * 2.55);
      filter: contrast(1);
    }
    
    figure:hover::before {
      filter: brightness(.3);
      transform: perspective(500px) rotateX(60deg);
    }
    
    figure:hover figcaption {
      transform: perspective(500px) translateY(100%) rotateX(-30deg);
    }

    This project demonstrates how HTML and CSS can work together to create a cinematic 3D card hover animation without any JavaScript. With only a few transforms, filters and transitions, Doctor Doom rises out of the card like he is stepping into your screen. Try it with your own favourite character and background to make the effect your own.

    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!

    Animation Button Cursor Effect Interactive
    Share. Copy Link Twitter Facebook LinkedIn Email WhatsApp
    Previous ArticleHow to make Interactive Wardrobe Rail using HTML CSS & JavaScript
    Coding Stella
    • Website

    Related Posts

    JavaScript

    How to make Interactive Wardrobe Rail using HTML CSS & JavaScript

    28 November 2026
    JavaScript

    How to make Shredder Delete Button using HTML CSS & JavaScript

    23 November 2026
    JavaScript

    How to make Mascot Animated Login Form using HTML CSS & JavaScript

    21 November 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Trending Post

    Master Frontend in 100 Days Ebook

    2 March 202432K Views

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

    11 January 202431K Views

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

    14 February 202424K Views

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

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

    How to make Social media icons hover effect using HTML & CSS

    14 May 2025

    How to create Stick Hero Game using HTML CSS and JS

    19 March 2026

    How to make Helmet Reveal Animation using HTML CSS & JS

    3 January 2026

    How to make Animated WiFi Card Generator using HTML CSS and JavaScript

    22 September 2026

    How to make Doomsday 3D Card Hover Animation using HTML & CSS

    30 November 2026

    How to make Interactive Wardrobe Rail using HTML CSS & JavaScript

    28 November 2026

    How to make Shredder Delete Button using HTML CSS & JavaScript

    23 November 2026

    How to make Mascot Animated Login Form using HTML CSS & JavaScript

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

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