
Подробное описание и демонстрацией работы эффекта наведения под номером №140 для бибилиотеки Bootstrap. Html и CSS код для реализации hover effect как на изображении.
html разметка для реализации данного эффекта<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-140/img-1.jpg"> <div class="box-content"> <h3 class="title">Williamson</h3> <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-140/img-2.jpg"> <div class="box-content"> <h3 class="title">Kristiana</h3> <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{ overflow: hidden; box-shadow: 0 0 3px rgba(0, 0, 0, 0.3); position: relative; } .box:before{ content: ""; width: 70%; height: 100%; border-radius: 50%; background: rgba(0, 0, 0, .8); position: absolute; top: 0; left: -30%; transform: scale(0); transition: all 0.2s ease 0s; } .box:hover:before{ transform: scale(2); } .box img{ width: 100%; height: auto; } .box .box-content{ width: 50%; color: #fff; position: absolute; top: 50%; left: 15%; transform: translate(-200%, -50%); transition: all 0.2s ease 0s; } .box:hover .box-content{ transform: translate(0, -50%); } .box .title{ font-size: 22px; font-weight: 700; z-index: 1; } .box .icon{ padding: 0; margin: 0; list-style: none; } .box .icon li{ display: inline-block; } .box .icon li a{ width: 40px; height: 40px; line-height: 40px; border-radius: 50%; text-align: center; font-size: 16px; color: #fff; border: 1px solid #fff; margin-right: 5px; transition: all 0.3s ease 0s; } .box .icon li a:hover{ background: #fff; color: #000; } @media only screen and (max-width:990px){ .box{ margin-bottom: 20px; } }