Подробное описание и демонстрацией работы эффекта наведения под номером №161 для бибилиотеки Bootstrap. Html и CSS код для реализации hover effect как на изображении.
<div class="container"> <div class="row"> <div class="col-md-4 col-sm-6"> <div class="box"> <img src="https://fokit.ru/demo/images/hover-effect/hover-effect-style-161/img-1.jpg" alt=""/> <div class="box-content"> <h3 class="title">Williamson</h3> <span class="post">Web Developer</span> <ul class="icon"> <li><a href="#" class="fa fa-search"></a></li> <li><a href="#" class="fa fa-link"></a></li> </ul> </div> </div> </div> <div class="col-md-4 col-sm-6"> <div class="box"> <img src="https://fokit.ru/demo/images/hover-effect/hover-effect-style-161/img-2.jpg" alt=""/> <div class="box-content"> <h3 class="title">Kristiana</h3> <span class="post">Web Designer</span> <ul class="icon"> <li><a href="#" class="fa fa-search"></a></li> <li><a href="#" class="fa fa-link"></a></li> </ul> </div> </div> </div> </div> </div>css разметка для реализации данного эффекта
.box{ background: #000; box-shadow: 0 0 3px rgba(0,0,0,0.3); overflow: hidden; position: relative; } .box:after{ content: ""; background: rgba(0, 0, 0, 0.7); position: absolute; top: 0; left: -30%; bottom: 0; right: 70%; transform: skew(20deg) translateX(-75%); transition: all 0.35s ease 0s; } .box:hover:after{ transform: skew(20deg) translateX(0); } .box img{ width: 100%; height: auto; transition: all 0.35s ease 0s; } .box:hover img{ opacity: 0.5; } .box .box-content{ padding: 20px; text-transform: uppercase; text-align: right; position: absolute; top: 0; right: 0; z-index: 1; } .box .title{ font-size: 20px; font-weight: 900; color: #fff; margin: 0 0 10px 0; transform: scale(0); transition: all 0.35s ease 0s; } .box:hover .title{ transform: scale(1); } .box .post{ display: block; font-size: 14px; color: #fff; margin-bottom: 5px; opacity: 0; transform: translateX(40px); transition: all 0.35s ease 0s; } .box .icon{ display: inline-block; padding: 0; margin: 0; list-style: none; } .box .icon li{ opacity: 0; transform: translateX(40px); transition: all 0.35s ease 0s; } .box:hover .icon li, .box:hover .post{ opacity: 1; transform: translateX(0); } .box:hover .icon li:first-child{ transition-delay: 0.1s; } .box:hover .icon li:nth-child(2){ transition-delay: 0.2s; } .box .icon li a{ display: block; width: 35px; height: 35px; line-height: 35px; border-radius: 50%; background: #fff; text-align: center; font-size: 18px; color: #605f5f; margin-bottom: 5px; transition: all 0.35s ease; } .box .icon li a:hover{ background: #605f5f; color: #fff; } @media only screen and (max-width:990px){ .box{ margin-bottom: 30px; } }