"card hover"
Bootstrap 4.1.1 Snippet by QuiTVo

<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="form-group row"> <div class="col-lg-3 col-md-3 col-sm-6"> <div class="col-12 w-100 m-0 p-0 employee__image--hover employee__image"> <span> <img src="http://localhost/thammychusa/public/vendor/images/images/nhanvien/4V2u_57116421_422316505234048_4443617406899716096_n.jpg" alt="Đội ngủ nhân viên" class="w-100 d-block h-100 img-responsive shadow"> </span> </div> <div class="w-100 my-3"> <h4 class="text-center font-weight-bold text-uppercase mb-0">Eleonore Schulist</h4> <p class="text-center">Nhân viên quản lý spa</p> </div> </div> </div>
.employee__image{ display: inline-block; position: relative; background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; margin: 20px 30px; background: #FFC107; padding: 0; } span{ display: block; } .employee__image::before, .employee__image::after{ content:""; width: 0; height: 2px; position: absolute; transition: all 0.2s linear; background: #FFC107; } span::before, span::after{ content:""; width:2px; height:0; position: absolute; transition: all 0.2s linear; background: red; } .employee__image:hover::before, .employee__image:hover::after{ width: 100%; } .employee__image:hover span::before, .employee__image:hover span::after{ height: 100%; } /*----- button 1 -----*/ .employee__image--hover::before, .employee__image--hover::after{ transition-delay: 0.2s; } .employee__image--hover span::before, .employee__image--hover span::after{ transition-delay: 0s; } .employee__image--hover::before{ right: 0; top: 0; } .employee__image--hover::after{ left: 0; bottom: 0; } .employee__image--hover span::before{ left: 0; top: 0; } .employee__image--hover span::after{ right: 0; bottom: 0; } .employee__image--hover:hover::before, .employee__image--hover:hover::after{ transition-delay: 0s; } .employee__image--hover:hover span::before, .employee__image--hover1:hover span::after{ transition-delay: 0.2s; }

Related: See More


Questions / Comments: