
Подробное описание и демонстрацией работы эффекта наведения под номером №99 для бибилиотеки 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-99/img-1.jpg" alt=""/> <div class="box-content"> <h3 class="title">willimson</h3> <span class="post">web designer</span> </div> <ul class="icon"> <li><a href="#"><i class="fa fa-plus"></i></a></li> <li><a href="#"><i class="fa fa-link"></i></a></li> </ul> </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-99/img-2.jpg" alt=""/> <div class="box-content"> <h3 class="title">Kristiana</h3> <span class="post">Web developer</span> </div> <ul class="icon"> <li><a href="#"><i class="fa fa-plus"></i></a></li> <li><a href="#"><i class="fa fa-link"></i></a></li> </ul> </div> </div> </div> </div>css разметка для реализации данного эффекта
.box{ overflow: hidden; position: relative; box-shadow: 0 0 5px #a3a3a3; } .box:before{ content: ""; width: 80%; height: 220%; background: #ff402a; position: absolute; top: -50%; left: -100%; z-index: 1; transform: rotate(25deg); transform-origin: center top 0; transition: all 0.5s ease 0s; } .box:hover:before{ left: 10%; } .box:after{ content: ""; width: 55%; height: 175%; background-color: rgba(0, 0, 0, 0.8); position: absolute; bottom: -1000%; left: 53%; transform: rotate(-33deg); transform-origin: center bottom 0; transition: all 0.8s ease 0s; } .box:hover:after{ bottom: -70%; } .box img{ width: 100%; height: auto; } .box .box-content{ width: 100%; position: absolute; top: -100%; left: 0; color: #fff; padding: 0 20px; z-index: 2; transition: all 1.1s ease 0s; } .box:hover .box-content{ top: 30px; } .box .title{ font-size: 24px; margin: 0; text-transform: capitalize; } .box .post{ display: inline-block; font-size: 14px; text-transform: capitalize; margin-top: 5px; } .box .icon{ width: 100%; list-style: none; padding: 0 20px; margin: 0; position: absolute; bottom: -100%; left: 0; z-index: 2; transition: all 1.1s ease 0s; } .box:hover .icon{ bottom: 25px; } .box .icon li{ display: inline-block; } .box .icon li a{ display: inline-block; width: 35px; height: 35px; line-height: 35px; background: #444; border-radius: 50%; margin: 0 3px; font-size: 14px; color: #fff; text-align: center; transition: all 0.5s ease 0s; } .box .icon li a:hover{ background: #fff; color: #ff402a; } @media only screen and (max-width:990px){ .box{ margin-bottom: 30px; } } @media only screen and (max-width:479px){ .box .title{ font-size: 20px; } }