Hover Effect Style 148

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

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

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-148/img-1.jpg">
<h3 class="title">Williamson</h3>
<div class="box-content">
<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-148/img-2.jpg">
<h3 class="title">Kristiana</h3>
<div class="box-content">
<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;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
overflow: hidden;
position: relative;
}
.box img{
width: 100%;
height: auto;
}
.box .box-content{
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
opacity: 0;
position: absolute;
top: 0;
left: 0;
transform: perspective(400px) rotateX(-90deg);
transform-origin: center top 0;
transition: all 0.5s ease 0s;
}
.box:hover .box-content{
opacity: 1;
transform: perspective(400px) rotateX(0deg);
}
.box .title{
display: inline-block;
padding: 5px 7px;
background: #ef4050;
border-radius: 5px;
font-size: 20px;
font-weight: 600;
color: #fff;
margin: 0;
position: absolute;
bottom: 20px;
left: 20px;
transition: all 900ms ease 0s;
}
.box:hover .title{ bottom: -40px; }
.box .icon{
list-style: none;
padding: 0;
margin: 0;
position: absolute;
top: 42%;
left: 0;
right: 0;
}
.box .icon li{ display: inline-block; }
.box .icon li a{
display: block;
width: 40px;
height: 40px;
line-height: 40px;
border-radius: 50%;
background: #ef4050;
text-align: center;
font-size: 20px;
color: #fff;
margin-right: 7px;
transition: all 0.35s ease 0s;
}
.box .icon li a:hover{
background: #fff;
color: #000;
}
@media only screen and (max-width:990px){
.box{ margin-bottom: 20px; }
}



Теги:
0

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

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