Hover Effect Style 119

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

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

Williamson

Miranda joy

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

<div class="container">
<div class="row">
<div class="col-md-3 col-sm-6">
<div class="box">
<img src="https://fokit.ru/demo/images/hover-effect/hover-effect-style-119/img-1.jpg" alt=""/>
<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-3 col-sm-6">
<div class="box">
<img src="https://fokit.ru/demo/images/hover-effect/hover-effect-style-119/img-2.jpg" alt=""/>
<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;
box-shadow: 0 0 5px #7e7d7d;
position: relative;
}
.box img{
width: 100%;
height: auto;
}
.box .box-content{
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
transition: all 0.5s ease 0s;
}
.box:hover .box-content{
background-color: rgba(255, 242, 242, 0.8);
}
.box .box-content:before,
.box .box-content:after{
content: "";
width: 50px;
height: 50px;
position: absolute;
opacity: 0;
transform: scale(1.5);
transition: all 0.6s ease 0.3s;
}
.box .box-content:before{
border-left: 1px solid #040404;
border-top: 1px solid #040404;
top: 19px;
left: 19px;
}
.box .box-content:after{
border-bottom: 1px solid #040404;
border-right: 1px solid #040404;
bottom: 19px;
right: 19px;
}
.box:hover .box-content:before,
.box:hover .box-content:after{
opacity: 1;
transform: scale(1);
}
.box .title{
font-size: 22px;
color: #000;
margin: 0;
position: relative;
top: 0;
opacity: 0;
transition: all 1s ease 0.01s;
}
.box:hover .title{
top: 39%;
opacity: 1;
transition: all 0.5s cubic-bezier(1, -0.53, 0.405, 1.425) 0.01s;
}
.box .title:after{
content: "";
width: 0;
height: 1px;
background: #040404;
position: absolute;
bottom: -8px;
left: 0;
right: 0;
margin: 0 auto;
transition: all 1s ease 0s;
}
.box:hover .title:after{
width: 80%;
transition: all 1s ease 0.8s;
}
.box .icon{
width: 100%;
list-style: none;
padding: 0;
margin: 0 auto;
position: absolute;
bottom: 0;
opacity: 0;
transition-duration: 0.6s;
transition-timing-function: cubic-bezier(1, -0.53, 0.405, 1.425);
transition-delay: 0.1s;
}
.box:hover .icon{
bottom: 39%;
opacity: 1;
}
.box .icon li{
display: inline-block;
}
.box .icon li a{
display: block;
width: 40px;
height: 40px;
line-height: 40px;
border-radius: 50%;
font-size: 18px;
color: #000;
border: 1px solid #000;
margin-right: 5px;
transition: all 0.3s ease-in-out 0s;
}
.box .icon li a:hover{
background: #000;
color: #fff;
}
@media only screen and (max-width:990px){
.box{ margin-bottom: 30px; }
}



Теги:
0

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

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