Profile Card
Home
Snippets
Profile Card
HTML
CSS
JS
<div class="center"> <div class="profile"> <div class="image"> <div class="circle-1"></div> <div class="circle-2"></div> <img src="https://100dayscss.com/codepen/jessica-potter.jpg" width="70" height="70"> </div> <div class="name">Jessica Potter</div> <div class="job">Visual Artist</div> <div class="actions"> <button class="btn">Follow</button> <button class="btn">Message</button> </div> </div> <div class="stats"> <div class="box"> <span class="value">523</span> <span class="parameter">Posts</span> </div> <div class="box"> <span class="value">1387</span> <span class="parameter">Likes</span> </div> <div class="box"> <span class="value">146</span> <span class="parameter">Follower</span> </div> </div> </div>
body{ height: 100vh; margin: 0; display: flex; align-items: center; justify-content: center; } .center { height: 250px; width: 320px; background: #fff; border-radius: 3px; overflow: hidden; box-shadow: 10px 10px 15px 0 rgba(0, 0, 0, 0.3); } .profile { float: left; width: 200px; height: 320px; text-align: center; } .profile .image { position: relative; width: 70px; height: 70px; margin: 20px auto 0 auto; } .profile .image .circle-1 { position: absolute; box-sizing: border-box; width: 76px; height: 76px; top: -3px; left: -3px; border-width: 1px; border-style: solid; border-color: #786450 #786450 #786450 transparent; border-radius: 50%; transition: all 1.5s ease-in-out; } .profile .image .circle-2 { position: absolute; box-sizing: border-box; width: 82px; height: 82px; top: -6px; left: -6px; border-width: 1px; border-style: solid; border-color: #786450 transparent #786450 #786450; border-radius: 50%; transition: all 1.5s ease-in-out; } .profile .image img { display: block; border-radius: 50%; background: #f5e8df; } .profile .image:hover { cursor: pointer; } .profile .image:hover .circle-1 { transform: rotate(360deg); } .profile .image:hover .circle-2 { transform: rotate(-360deg); } .profile .name { font-size: 15px; font-weight: 600; margin-top: 15px; } .profile .job { font-size: 11px; line-height: 15px; } .profile .actions { margin-top: 20px; } .profile .actions .btn { display: block; width: 120px; height: 30px; margin: 0 auto 10px auto; background: none; border: 1px solid #786450; border-radius: 15px; font-size: 12px; font-weight: 600; box-sizing: border-box; transition: all 0.3s ease-in-out; color: #786450; } .profile .actions .btn:hover { background: #786450; color: #fff; } .stats { float: left; } .stats .box { box-sizing: border-box; width: 120px; height: 83px; background: #f5e8df; text-align: center; padding-top: 28px; transition: all 0.4s ease-in-out; } .stats .box:hover { background: #e1cfc2; cursor: pointer; } .stats .box:nth-child(2) { margin: 1px 0; } .stats span { display: block; } .stats .value { font-size: 18px; font-weight: 600; } .stats .parameter { font-size: 11px; }
//javascript
Ad #1
Ad #2
Scroll to Top