DevPlatform
Home
Components
Search
Submit
Earn
Login
Sign Up Free
Delete Confirmation - 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
Delete Confirmation
aartigoyal
Jan 29, 2026
3
0
Share
Live Preview
Refresh
Live Editor
HTML
CSS
JS
HTML
CSS
JavaScript
1
<div class="card" id="card"> <div class="card-inner"> <div class="card-header"> <div class="status-indicator"> <div class="pulse-dot"></div> <span class="status-text">Active</span> </div> <button class="delete-btn" onclick="deleteCard()"> <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M18 6L6 18M6 6L18 18" stroke="currentColor" stroke-width="2" stroke-linecap="round"/> </svg> </button> </div> <div class="card-content"> <h2 class="card-title">Neural Nexus</h2> <div class="tags"> <span class="tag">AI Powered</span> <span class="tag">Premium</span> <span class="tag">Cloud Ready</span> </div> </div> <div class="card-footer"> <button class="btn btn-secondary">Explore</button> <button class="btn btn-primary">Activate</button> </div> </div> </div>
1
* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #0a0e27; min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 20px; position: relative; overflow: hidden; } body::before { content: ''; position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255, 107, 107, 0.3), transparent); top: -200px; left: -200px; animation: float 8s ease-in-out infinite; } body::after { content: ''; position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(78, 205, 196, 0.3), transparent); bottom: -150px; right: -150px; animation: float 10s ease-in-out infinite reverse; } @keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(50px, 50px) scale(1.1); } } .card { width: 380px; height: 300px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08)); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 28px; position: relative; overflow: hidden; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1; } .card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2); } .card::before { content: ''; position: absolute; inset: 0; border-radius: 28px; padding: 2px; background: linear-gradient(135deg, rgba(255, 107, 107, 0.6), rgba(255, 197, 61, 0.6), rgba(78, 205, 196, 0.6)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.5; animation: rotate 4s linear infinite; } @keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .card-inner { position: relative; padding: 30px; height: 100%; display: flex; flex-direction: column; } .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; } .status-indicator { display: flex; align-items: center; gap: 8px; } .pulse-dot { width: 10px; height: 10px; background: #4ecdc4; border-radius: 50%; position: relative; box-shadow: 0 0 10px #4ecdc4; animation: pulse 2s ease-in-out infinite; } @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.2); } } .status-text { color: #4ecdc4; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; } .delete-btn { background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.3); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; position: relative; } .delete-btn:hover { background: rgba(255, 107, 107, 0.2); border-color: rgba(255, 107, 107, 0.6); transform: rotate(90deg); } .delete-btn svg { width: 18px; height: 18px; stroke: #ff6b6b; } .card-content { flex: 1; } .card-title { font-size: 32px; font-weight: 800; color: #ffffff; margin-bottom: 12px; letter-spacing: -1px; text-shadow: 0 0 20px rgba(255, 107, 107, 0.5), 0 0 40px rgba(78, 205, 196, 0.3); } .card-description { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.95); margin-bottom: 16px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } .tags { display: flex; gap: 8px; flex-wrap: wrap; } .tag { padding: 6px 14px; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 20px; font-size: 11px; color: rgba(255, 255, 255, 0.95); font-weight: 600; transition: all 0.3s ease; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } .tag:hover { background: rgba(255, 255, 255, 0.25); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); } .card-footer { display: flex; gap: 10px; margin-top: auto; } .btn { flex: 1; padding: 14px; border: none; border-radius: 14px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; } .btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent); transform: translateX(-100%); transition: transform 0.6s; } .btn:hover::before { transform: translateX(100%); } .btn-primary { background: linear-gradient(135deg, #ff6b6b, #ffc53d); color: white; box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3); } .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4); } .btn-secondary { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.3); color: rgba(255, 255, 255, 1); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } .btn-secondary:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-3px); } /* Animation */ @keyframes slideIn { from { opacity: 0; transform: translateY(30px) rotateX(20deg); } to { opacity: 1; transform: translateY(0) rotateX(0); } } .card { animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
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!