
Подробное описание и демонстрацией работы эффекта наведения под номером №207 для бибилиотеки Bootstrap. Html и CSS код для реализации hover effect как на изображении.
html разметка для реализации данного эффекта<div class="demo"> <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-207/img-1.jpg" alt=""> <div class="box-content"> <h3 class="title">Williamson</h3> <span class="post">Web Developer</span> <ul class="icon"> <li><a href="#"><i class="fa fa-search"></i></a></li> <li><a href="#"><i class="fa fa-link"></i></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-207/img-2.jpg" alt=""> <div class="box-content"> <h3 class="title">Kristiana</h3> <span class="post">Web Designer</span> <ul class="icon"> <li><a href="#"><i class="fa fa-search"></i></a></li> <li><a href="#"><i class="fa fa-link"></i></a></li> </ul> </div> </div> </div> </div> </div> </div>css разметка для реализации данного эффекта
.demo{ background: #505050; } .box{ background: #5f243e; border: 10px solid rgba(255,255,255,0.8); text-align: center; overflow: hidden; z-index: 1; position: relative; } .box:before{ content: ""; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, rgba(0,0,0,0.1), rgba(0,0,0,0.1), 10px, transparent 20px, transparent 30px), repeating-linear-gradient(-45deg, rgba(0,0,0,0.3), rgba(0,0,0,0.3), 10px, transparent 20px, transparent 30px); position: absolute; top: 0; left: 0; z-index: -1; } .box img{ width: 100%; height: 100%; transform: scale(1); transition: all 0.3s ease 0s; } .box:hover img{ transform: scale(1,0); } .box .box-content{ width: 100%; position: absolute; top: 50%; left: 50%; opacity: 0; z-index: -1; transform: translate(-50%, -50%) rotate(45deg); transition: all 0.3s ease 0.3s; } .box:hover .box-content{ opacity: 1; transform: translate(-50%, -50%) rotate(0); } .box .title{ font-size: 22px; font-weight: 600; color: #fff; letter-spacing: 1px; text-transform: uppercase; margin: 0; } .box .post{ display: block; font-size: 14px font-style: italic; color: #fff; letter-spacing: 2px; } .box .icon{ padding: 0; margin: 0; list-style: none; } .box .icon li{ display: inline-block; margin: 10px 5px; } .box .icon li a{ display: block; width: 35px; height: 35px; line-height: 35px; border-radius: 50% 50% 50% 0; background: #fff; font-size: 18px; color: #5f243e; transition: all 0.3s ease 0s; } .box .icon li a:hover{ box-shadow: 0 0 10px rgba(0,0,0,0.2) inset,0 0 0 2px #5f243e,0 0 0 5px #fff; } @media only screen and (max-width:990px){ .box{ margin-bottom: 30px; } }