WEBLEB
होम
संपादक
लॉग इन करें
Pro
हिंदी
English
Français
Español
Português
Deutsch
Italiano
हिंदी
3D प्रोडक्ट कार्ड HTML नाइकी शू का उदाहरण
35
codex
संपादक में खोलें
Video
अपना कोड प्रकाशित करें
अनुशंसित
11 March 2024
पोर्टफोलियो वेबसाइट HTML सीएसएस टेम्पलेट
23 August 2025
वेब डेवलपर पोर्टफोलियो: HTML, CSS, JavaScript
8 September 2025
लॉगिन और साइन अप फ़ॉर्म HTML/CSS टेम्पलेट
HTML
Copy
3D Product Card
Nike Air Max
Size :
7
8
9
10
Color :
Buy Now
CSS
Copy
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap'); * { margin: 0; padding: 0; font-family: 'Poppins', sans-serif; } body { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #131313; /* Deep Black */ } .container { position: relative; } .card { position: relative; width: 320px; height: 450px; background: #232323; border-radius: 20px; overflow: hidden; /* Important! Keeps everything inside the rounded corners */ } /* This pseudo-element creates the big colored circle */ .card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #9bdc28; /* The "Nike Volt" Green */ clip-path: circle(150px at 80% 20%); transition: 0.5s ease-in-out; } /* Hover Effect: The circle expands to fill the background */ .card:hover::before { clip-path: circle(300px at 80% -20%); } .card .imgBx { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10000; /* Puts the shoe ON TOP of everything */ width: 100%; height: 220px; transition: 0.5s; } .card .imgBx img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-25deg); /* Tilted start position */ width: 270px; } /* Hover Interaction: The shoe floats UP and rotates */ .card:hover .imgBx { top: 0%; transform: translateY(0%); } .card:hover .imgBx img { /* Rotates straight when hovered */ transform: translate(-50%, -50%) rotate(0deg); } .card .contentBx { position: absolute; bottom: 0; width: 100%; height: 100px; text-align: center; transition: 1s; z-index: 10; } .card:hover .contentBx { height: 210px; /* Slides up to reveal options */ } .card .contentBx h2 { position: relative; font-weight: 600; letter-spacing: 1px; color: #fff; } /* Styling the Sizes */ .card .contentBx .size, .card .contentBx .color { display: flex; justify-content: center; align-items: center; padding: 8px 20px; transition: 0.5s; opacity: 0; visibility: hidden; /* Hidden by default */ } /* Reveal details on hover */ .card:hover .contentBx .size, .card:hover .contentBx .color { opacity: 1; visibility: visible; transition-delay: 0.5s; /* Waits for the shoe to move up first */ } /* Simple Button Styling */ .card .contentBx a { display: inline-block; padding: 10px 20px; background: #fff; border-radius: 4px; margin-top: 10px; text-decoration: none; font-weight: 600; color: #111; opacity: 0; transform: translateY(50px); transition: 0.5s; } .card:hover .contentBx a { opacity: 1; transform: translateY(0px); transition-delay: 0.75s; /* Comes in last */ }
JS
Copy
/* Replace with your JS Code (Leave empty if not needed) */