Hover Effect Style 206

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

Демонстрация эффекта наведения — стиль 206

Williamson

Kristiana

Steve Thomas

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-206/img-1.jpg" alt="">
<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 class="col-md-4 col-sm-6">
<div class="box">
<img src="https://fokit.ru/demo/images/hover-effect/hover-effect-style-206/img-2.jpg" alt="">
<h3 class="title">Kristiana</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>

css разметка для реализации данного эффекта

.box{
overflow: hidden;
box-shadow: 0 0 3px rgba(0,0,0,0.3);
position: relative;
}
.box:before,
.box:after{
content: "";
width: 100%;
height: 50%;
background: rgba(0,0,0,0.5);
position: absolute;
top: 0;
left: 0;
z-index: 1;
transform-origin: 100% 0;
transform: rotateZ(90deg);
transition: all 0.3s ease 0s;
}
.box:after{
top: auto;
bottom: 0;
transform-origin: 0 100%;
}
.box:hover:before,
.box:hover:after{ transform: rotateZ(0); }
.box img{
width: 100%;
height: auto;
transform: scale(1) rotate(0);
transition: all 0.3s ease 0s;
}
.box:hover img{
filter: sepia(80%);
transform: scale(1.3) rotate(10deg);
}
.box .title{
font-size: 19px;
font-weight: 600;
color: #fff;
letter-spacing: 1px;
text-transform: uppercase;
text-shadow: 0 0 1px #004cbf;
margin: 0;
position: absolute;
bottom: 10px;
left: 10px;
opacity: 0;
z-index: 2;
transform: scale(0);
transition: all 0.5s ease 0.2s;
}
.box:hover .title{
opacity: 1;
transform: scale(1);
}
.box .icon{
padding: 7px 5px;
margin: 0;
list-style: none;
text-align: center;
background: #004cbf;
border-radius: 0 0 0 10px;
position: absolute;
top: -100%;
right: 0;
z-index: 2;
transition: all 0.3s ease 0.2s;
}
.box:hover .icon{ top: 0; }
.box .icon li{
display: block;
margin: 10px 0;
}
.box .icon li a{
display: block;
width: 35px;
height: 35px;
line-height: 35px;
border-radius: 10px;
font-size: 18px;
color: #fff;
transition: all 0.3s ease 0s;
}
.box .icon li a:hover{
color: #fff;
box-shadow: 0 0 10px #000 inset,0 0 0 3px #fff;
}
@media only screen and (max-width:990px){
.box{ margin-bottom: 30px; }
}



Теги:
0

Оставить своё мнение

Ваш e-mail не будет опубликован. Обязательные поля помечены *