
Подробное описание и демонстрацией работы эффекта наведения под номером №7 для бибилиотеки Bootstrap. Html и CSS код для реализации hover effect как на изображении.
html разметка для реализации данного эффекта<div class="container"> <div class="row"> <div class="col-md-3 col-sm-6"> <div class="box"> <img src="https://fokit.ru/demo/images/hover-effect/hover-effect-style-7/img-1.jpg" alt=""/> <div class="option"> <a href="#" class="link"><i class="fa fa-search"></i></a> </div> </div> </div> </div> </div>css разметка для реализации данного эффекта
.box{ position: relative; text-align: center; overflow: hidden; } .box img{ width: 100%; height: auto; } .box .option{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: all 0.5s ease 0s; } .box:hover .option{ background: rgba(0, 0, 0 ,0.8); } .box .link{ border: 4px solid #fff; position: relative; top: 0; width: 100%; height: 100%; line-height: 40px; font-size: 18px; display: inline-block; color: #fff; transition: all 0.5s ease 0s; opacity: 0; } .box .link:hover{ color:#fff; } .box:hover .link{ top: 40%; border-radius: 50%; width: 50px; height: 50px; opacity: 1; } @media only screen and (max-width: 990px){ .box{ margin-bottom: 20px; } }