Подробное описание и демонстрацией работы эффекта наведения под номером №46 для бибилиотеки 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-46/img-1.jpg" alt=""/> <a href="#" class="box-content"> <h4 class="title">Web Developer</h4> <p class="description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vitae libero orci. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc sed vestibulum.</p> </a> </div> </div> </div> </div>css разметка для реализации данного эффекта
.box{ position: relative; overflow: hidden; } .box img{ width: 100%; height: auto; z-index: 1; transform: translate(0,0); transition: all 0.30s linear 0s; } .box:hover img{ transform: translate(100%,-100%); } .box .box-content{ width: 100%; height: 99%; display: block; position: absolute; top: 0; left: 0; background: #6f4d3a; padding: 20px 30px; } .box .title{ color: #fff; font-size: 16px; font-weight: bold; margin-bottom: 20px; text-transform: uppercase; } .box .description{ color: #fff; font-size: 14px; } @media only screen and (max-width: 990px){ .box{ margin-bottom: 20px; } } @media only screen and (max-width: 479px){ .box .box-content{ padding: 10px 20px; } }