
Подробное описание и демонстрацией работы эффекта наведения под номером №211 для бибилиотеки Bootstrap. Html и CSS код для реализации hover effect как на изображении.
html разметка для реализации данного эффекта<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css /> --> <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-211/img-1.jpg" alt=""> <div class="box-content"> <div class="content"> <h3 class="title">Williamson</h3> <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 class="col-md-4 col-sm-6"> <div class="box"> <img src="https://fokit.ru/demo/images/hover-effect/hover-effect-style-211/img-2.jpg" alt=""> <div class="box-content"> <div class="content"> <h3 class="title">Miranda Roy</h3> <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-color: #E5E9EC; } .box{ font-family: 'Montserrat', sans-serif; text-align: center; overflow: hidden; perspective: 800px; position: relative; z-index: 2; transition: all 0.3s ease 0s; } .box:hover{ box-shadow: 0 0 10px #000; } .box:before{ content: ''; height: 100%; width: 100%; background-image: repeating-linear-gradient(45deg, transparent 5px, transparent 10px, rgba(0,0,0,0.3) 24px); opacity: 0; position: absolute; left: 0; top: 0; transition: all 0.3s ease 0.1s; } .box:hover:before{ opacity: 1; } .box img{ width: 100%; height: auto; } .box .box-content{ background: linear-gradient(to bottom,transparent,rgba(0,0,0,0.1),rgba(0,0,0,0.7),rgba(0,0,0,0.9)); height: 100%; width: 100%; opacity: 0; transform-origin: center bottom; transform: rotate(-180deg); position: absolute; left: 0; top: 0; transition: all 0.3s ease 0s; } .box:hover .box-content{ opacity: 1; transform: rotate(0); } .box .content{ color: #fff; width: 100%; opacity: 0; filter: blur(5px); transform: translatex(-50%); position: absolute; left: 50%; bottom: 15px; transition: all 0.4s ease 0.25s; } .box:hover .content{ opacity: 1; filter: blur(0); } .box .title{ font-size: 22px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 10px; } .box .icon{ list-style: none; text-align: center; padding: 0; margin: 0; } .box .icon li{ margin: 0 5px; display: inline-block; } .box .icon li a{ color: #fff; background-color: #e41757; font-size: 20px; line-height: 35px; height: 35px; width: 35px; border-radius: 40% 0; display: block; transition: all 0.3s ease 0s; } .box .icon li a:hover{ color: #e41757; background-color: #fff; box-shadow: 0 0 15px #e41757; } @media only screen and (max-width:990px){ .box{ margin-bottom: 30px; } } @media only screen and (max-width:479px){ .box .title{ font-size: 18px; } }