DevPlatform
Home
Components
Search
Submit
Earn
Login
Sign Up Free
Profile 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
Profile Card
admin1234
Jan 31, 2026
3
0
Share
Live Preview
Refresh
Live Editor
HTML
CSS
JS
HTML
CSS
JavaScript
1
<!-- Background Circles --> <div class="bg-circle bg-circle-1"></div> <div class="bg-circle bg-circle-2"></div> <div class="bg-circle bg-circle-3"></div> <!-- Floating Particles --> <div class="particle" style="left: 10%; animation-delay: 0s;"></div> <div class="particle" style="left: 20%; animation-delay: 2s;"></div> <div class="particle" style="left: 30%; animation-delay: 4s;"></div> <div class="particle" style="left: 40%; animation-delay: 1s;"></div> <div class="particle" style="left: 50%; animation-delay: 3s;"></div> <div class="particle" style="left: 60%; animation-delay: 5s;"></div> <div class="particle" style="left: 70%; animation-delay: 2.5s;"></div> <div class="particle" style="left: 80%; animation-delay: 4.5s;"></div> <div class="particle" style="left: 90%; animation-delay: 1.5s;"></div> <!-- Card Container --> <div class="card-container"> <div class="card" id="card"> <!-- Profile Section --> <div class="profile"> <div class="avatar-container"> <div class="avatar-ring"></div> <div class="avatar">🚀</div> </div> <h2 class="name">Alex Morgan</h2> <p class="title">Full Stack Developer</p> </div> <!-- Stats Section --> <div class="stats"> <div class="stat-item"> <div class="stat-value">127</div> <div class="stat-label">Projects</div> </div> <div class="stat-item"> <div class="stat-value">5.2K</div> <div class="stat-label">Followers</div> </div> <div class="stat-item"> <div class="stat-value">892</div> <div class="stat-label">Following</div> </div> </div> <!-- Follow Button --> <button class="follow-btn"> <span class="btn-text">Follow</span> </button> </div> </div>
1
* { margin: 0; padding: 0; box-sizing: border-box; } body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; padding: 20px; overflow: hidden; position: relative; } /* Animated Background Circles */ .bg-circle { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: float 20s ease-in-out infinite; } .bg-circle-1 { width: 400px; height: 400px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); top: -200px; left: -200px; animation-delay: 0s; } .bg-circle-2 { width: 500px; height: 500px; background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); bottom: -250px; right: -250px; animation-delay: 5s; } .bg-circle-3 { width: 350px; height: 350px; background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); top: 50%; right: -150px; animation-delay: 10s; } @keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(50px, -50px) scale(1.1); } 66% { transform: translate(-30px, 30px) scale(0.9); } } /* Card Container */ .card-container { perspective: 1000px; } .card { width: 300px; height: 300px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(20px); border-radius: 25px; border: 1px solid rgba(255, 255, 255, 0.2); padding: 25px; position: relative; transform-style: preserve-3d; transition: transform 0.3s ease; cursor: pointer; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 0 40px rgba(255, 255, 255, 0.1); } .card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient( 135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100% ); border-radius: 25px; pointer-events: none; } /* Shine Effect */ .card::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient( 45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70% ); transform: translateX(-100%); transition: transform 0.6s; pointer-events: none; } .card:hover::after { transform: translateX(100%); } /* Profile Section */ .profile { text-align: center; margin-bottom: 15px; } .avatar-container { width: 80px; height: 80px; margin: 0 auto 12px; position: relative; } .avatar { width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; font-size: 36px; color: white; position: relative; z-index: 1; box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4); animation: avatarPulse 3s ease-in-out infinite; } @keyframes avatarPulse { 0%, 100% { box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4); } 50% { box-shadow: 0 10px 40px rgba(102, 126, 234, 0.6); } } .avatar-ring { position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px; border: 3px solid rgba(255, 255, 255, 0.3); border-radius: 50%; animation: rotate 8s linear infinite; border-top-color: #667eea; border-right-color: transparent; } @keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .name { font-size: 20px; font-weight: bold; color: white; margin-bottom: 5px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); } .title { font-size: 13px; color: rgba(255, 255, 255, 0.8); margin-bottom: 12px; } /* Stats Section */ .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; } .stat-item { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: 12px; padding: 10px 5px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.2); transition: all 0.3s ease; } .stat-item:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-5px); } .stat-value { font-size: 18px; font-weight: bold; color: white; margin-bottom: 3px; } .stat-label { font-size: 10px; color: rgba(255, 255, 255, 0.7); text-transform: uppercase; letter-spacing: 0.5px; } /* Button */ .follow-btn { width: 100%; padding: 12px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; border-radius: 12px; color: white; font-size: 14px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4); position: relative; overflow: hidden; } .follow-btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.3); transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; } .follow-btn:hover::before { width: 300px; height: 300px; } .follow-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6); } .follow-btn:active { transform: translateY(-1px); } .btn-text { position: relative; z-index: 1; } /* Floating Particles */ .particle { position: absolute; width: 4px; height: 4px; background: white; border-radius: 50%; opacity: 0.6; animation: particleFloat 15s linear infinite; } @keyframes particleFloat { 0% { transform: translateY(100vh) translateX(0); opacity: 0; } 10% { opacity: 0.6; } 90% { opacity: 0.6; } 100% { transform: translateY(-100vh) translateX(100px); opacity: 0; } }
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!