Hover Effect Style 120

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

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

Williamson

Web Developer

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-120/img-1.jpg" alt=""/>
<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 class="box-content">
<h3 class="title">Williamson</h3>
<span class="post">Web Developer</span>
</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-120/img-2.jpg" alt=""/>
<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 class="box-content">
<h3 class="title">Kristiana</h3>
<span class="post">Web Designer</span>
</div>
</div>
</div>
</div>
</div>

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

.box{
text-align: center;
overflow: hidden;
box-shadow: 0 0 5px #7e7d7d;
position: relative;
}
.box:after{
content: "";
width: 100%;
height: 100%;
background: rgba(2, 162, 221, 0.9);
position: absolute;
top: 0;
left: 0;
opacity: 0;
transition: all 0.5s ease 0s;
}
.box:hover:after{
opacity: 1;
}
.box img{
width: 100%;
height: auto;
transition: all 1.5s ease 0s;
}
.box:hover img{
transform: scale(1.2);
}
.box .icon{
width: 100%;
height: 100%;
list-style: none;
padding: 0;
margin: 0 auto;
position: absolute;
top: 0;
left: 0;
z-index: 1;
}
.box .icon li{
display: inline-block;
}
.box .icon li a{
display: inline-block;
width: 45px;
height: 45px;
line-height: 45px;
border-radius: 50%;
position: absolute;
margin: 0 auto;
top: 50%;
border: 1px solid #fff;
font-size: 20px;
color: #fff;
opacity: 0;
transition: all 0.6s ease 0s;
}
.box:hover .icon li a{
top: 30%;
opacity: 1;
}
.box .icon li a:hover{
background: #fff;
color: #02a2dd;
}
.box .icon li:first-child a{
left: -90%;
right: 0;
}
.box:hover .icon li:first-child a{
left: -55px;
}
.box .icon li:last-child a{
right: -90%;
left: 0;
}
.box:hover .icon li:last-child a{
right: -55px;
}
.box .box-content{
width: 100%;
padding: 20px 10px;
background: rgba(0, 0, 0, 0.1);
position: absolute;
bottom: -100px;
left: 0;
z-index: 1;
transition: all 0.6s ease 0s;
}
.box:hover .box-content{
bottom: 0;
}
.box .title{
font-size: 18px;
font-weight: bold;
color: #fff;
margin-top: 0;
}
.box .post{
display: block;
font-size: 14px;
color: #fff;
}
@media only screen and (max-width:990px){
.box{ margin-bottom: 30px; }
}



Теги:
0

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

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