
Подробное описание и демонстрацией работы эффекта наведения под номером №66 для бибилиотеки Bootstrap. Html и CSS код для реализации hover effect как на изображении.
Демонстрация эффекта наведения — стиль 66

Williamson
Заголовок
Kristiana
Web Developer
Steve Thomas
Graphic Designer<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-66/img-1.jpg"/> <div class="box-content"> <h3 class="title">Williamson</h3> <span class="post">Web Designer</span> </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-66/img-2.jpg"/> <div class="box-content"> <h3 class="title">Kristiana</h3> <span class="post">Web Developer</span> </div> </div> </div> </div> </div>css разметка для реализации данного эффекта
.box{ position: relative; overflow: hidden; box-shadow: 0 0 5px #808080; } .box:before, .box:after{ content: ""; width: 0; height: 0; position: absolute; opacity: 0; z-index: 1; transition: all 0.5s ease 0s; } .box:before{ bottom: 5%; left: 5%; border-bottom: 2px solid #fff; border-left: 2px solid #fff; } .box:after{ top: 5%; right: 5%; border-top: 2px solid #fff; border-right: 2px solid #fff; } .box:hover:before, .box:hover:after{ opacity: 1; width: 90%; height: 90%; } .box img{ width: 100%; height: auto; transform: scale(1); transition: all 0.5s ease 0s; } .box:hover img{ transform: scale(1.05); } .box .box-content{ width: 100%; position: absolute; bottom: 10%; left: 10%; } .box .title, .box .post{ display: block; font-size: 25px; color: #fff; line-height: 25px; margin: 0; position: absolute; bottom: 0; left: 0; opacity: 1; transition: all 0.5s ease 0s; } .box:hover .title, .box .post{ opacity: 0; } .box:hover .post{ opacity: 1; } @media only screen and (max-width: 990px){ .box{ margin-bottom: 20px; } }