"Avatar hover"
Bootstrap 4.1.1 Snippet by dkstudio

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="sectionAvatar"> <div class="pointer"> <div class="sectionAvatar-hover"> <i class="icon-tools icon-tools-avatar-camera-white"></i> </div> <div> <img class="avatar-thumb" width="150" src="https://www.dkstudio.in/img/portfolio/acharyarakesh.jpg"> </div> </div> </div>
.sectionAvatar { text-align: center;height: 120px;width: 120px;cursor: pointer;position: relative;margin: 0 auto 15px;} .pointer {cursor: pointer;} .sectionAvatar-hover { position: absolute;background: rgba(0,0,0,.4);width: 120px;height: 120px;border-radius: 50%;margin: 0 auto; box-sizing: border-box;padding-top: 45px;z-index: 1;right: 0; left: 0;display: none;} .sectionAvatar:hover .sectionAvatar-hover { display: block; } .avatar-thumb { max-width: 100%;height: auto; border-radius: 50%; border: 2px solid #fff; margin: -2px;display: block; object-fit: cover; }

Related: See More


Questions / Comments: