Hover Effect Style 133

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

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

Williamson

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

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

.box{
text-align: center;
overflow: hidden;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
position: relative;
}
.box:after{
content: "";
width: 65%;
background: rgba(28, 28, 28, 0.8);
padding-bottom: 65%;
opacity: 0;
position: absolute;
top: 50%;
left: 50%;
transform: rotate(0deg) translate(-50%, -50%);
transform-origin: 0 0 0;
transition: all 0.3s ease 0s;
}
.box:hover:after{
transform: rotate(-45deg) translate(-50%, -50%);
opacity: 1;
}
.box img{
width: 100%;
height: auto;
}
.box .box-content{
width: 100%;
position: absolute;
top: 35%;
left: 0;
opacity: 0;
z-index: 1;
transition: all 0.3s ease 0s;
}
.box:hover .box-content{
opacity: 1;
}
.box .title{
display: inline-block;
padding: 10px 0;
color: #fff;
margin: 0;
border-top: 2px solid #fff;
border-bottom: 2px solid #fff;
}
.box .icon{
padding: 0;
margin: 12px 0 0 0;
list-style: none;
}
.box .icon li{
display: inline-block;
}
.box .icon li a{
display: block;
width: 35px;
height: 35px;
line-height: 35px;
border-radius: 50%;
border: 1px solid #fff;
font-size: 18px;
color: #fff;
margin-right: 10px;
transition: all 0.3s ease 0s;
}
.box .icon li a:hover{
border-radius: 0;
}
@media only screen and (max-width:990px){
.box{ margin-bottom: 20px; }
}



Теги:
0

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

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