Unique Profile Card
Home
Snippets
Unique Profile Card
HTML
CSS
JS
<div class="profile-card"> <div class="profile-pic"></div> <h2>User Name</h2> <p>Web Developer & Designer</p> <button>Follow</button> </div>
* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; } body { background: #333; height: 100vh; display: flex; justify-content: center; align-items: center; } .profile-card { width: 200px; height: 300px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); text-align: center; padding: 20px; color: white; overflow: hidden; position: relative; } .profile-card::before { content: ""; position: absolute; top: -50%; left: -50%; width: 150%; height: 150%; background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent); animation: rotateGlow 6s linear infinite; z-index: 0; } @keyframes rotateGlow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .profile-card * { position: relative; z-index: 1; } .profile-pic { width: 100px; height: 100px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.5); margin: 20px auto; } .profile-card h2 { font-size: 22px; margin: 10px 0; font-weight: bold; } .profile-card p { font-size: 14px; color: rgba(255, 255, 255, 0.7); margin-bottom: 20px; } .profile-card button { padding: 10px 20px; background: rgba(255, 255, 255, 0.2); border: none; border-radius: 20px; cursor: pointer; color: white; transition: background 0.3s; } .profile-card button:hover { background: rgba(255, 255, 255, 0.4); }
// javascript
Ad #1
Ad #2
Scroll to Top