DevPlatform
Home
Components
Search
Submit
Earn
Login
Sign Up Free
3D Product Card - Preview | DevPlatform
DevPlatform
Categories
Accordion
Animation
Box Shadow
Button
Card
Footer
Form
Gallery
Hero Section
Inputs
Loader
Marquee
Modal
Modules
Navbar
Progress Bar
Radio Buttons
Search-Bar
Sections
Slider
Tab
Timeline
Toggle
3D Product Card
rohitwushu
Jan 27, 2026
2
0
Share
Live Preview
Refresh
Live Editor
HTML
CSS
JS
HTML
CSS
JavaScript
1
<div class="product-card"> <img src="https://upload.wikimedia.org/wikipedia/commons/8/8a/Banana-Single.jpg" class="product-img" alt="Banana"> <div class="product-info"> <h3>Banana 5 pcs</h3> <p>Lorem Ipsum Lorem Ipsum Lorem Ipsum</p> <div class="price">$00.00</div> </div> <div class="qty"> <button>−</button> <span>000</span> <button>+</button> </div> </div>
1
*{ box-sizing:border-box; font-family:'Inter',sans-serif; } body{ min-height:100vh; display:grid; place-items:center; background:#f2f2f4; perspective:1200px; } /* Card */ .product-card{ width:420px; height:120px; background:linear-gradient(180deg,#ffffff,#f8f8f8); border-radius:22px; padding:18px 22px; display:flex; align-items:center; gap:18px; box-shadow: 0 20px 40px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.8); transition:.4s ease; transform-style:preserve-3d; } .product-card:hover{ transform:rotateX(6deg) rotateY(-6deg) translateY(-6px); box-shadow: 0 35px 70px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.9); } /* Image */ .product-img{ width:84px; transform:translateZ(30px); } /* Content */ .product-info{ flex:1; transform:translateZ(20px); } .product-info h3{ font-size:18px; margin-bottom:4px; } .product-info p{ font-size:13px; color:#666; line-height:1.3; } .price{ font-weight:600; margin-top:6px; } /* Quantity */ .qty{ background:#111; color:#fff; border-radius:999px; padding:6px 10px; display:flex; align-items:center; gap:10px; transform:translateZ(40px); box-shadow:0 12px 24px rgba(0,0,0,.4); } .qty button{ background:none; border:none; color:#fff; font-size:18px; cursor:pointer; } .qty span{ font-size:14px; font-weight:600; min-width:24px; text-align:center; }
1
Comments
0
Want to comment?
Please
login
or
sign up
to post comments.
No comments yet
Be the first to comment on this component!
Comments 0
Want to comment?
Please login or sign up to post comments.
No comments yet
Be the first to comment on this component!