Hover Effect Style 44

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

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

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

<div class="container">
<div class="row">
<div class="col-md-4 col-sm-6">
<div class="box">
<a href="#" class="box-img">
<img src="https://fokit.ru/demo/images/hover-effect/hover-effect-style-44/img-1.jpg" alt=""/>
<span class="over-layer">
<i class="fa fa-search"></i>
</span>
</a>
</div>
</div>
</div>
</div>

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

.box{
border: 1px solid #000;
padding: 3px;
box-shadow: 0 0 5px #fff;
}
.box .box-img{
display: block;
position: relative;
overflow: hidden;
}
.box .box-img img{
width: 100%;
height: auto;
}
.box .over-layer{
position: absolute;
top:0;
left: 0;
width: 100%;
height: 100%;
text-align: center;
}
.box-img:before,
.box-img:after,
.box-img .over-layer:before,
.box-img .over-layer:after{
content:"";
width: 50%;
height: 50%;
position: absolute;
background: rgba(255, 255, 255,0.4);
transition: all 0.40s ease-in-out 0s;
}
.box-img:before{
top: 0;
left: -100%;
}
.box:hover .box-img:before{
left:0;
}
.box-img:after{
top: -100%;
right: 0;
background:rgba(255, 255, 255,0.8);
}
.box:hover .box-img:after{
top:0;
}
.box-img .over-layer:before{
left: 0;
bottom: -100%;
background:rgba(255, 255, 255,0.8);
}
.box:hover .over-layer:before{
bottom:0;
}
.box-img .over-layer:after{
bottom: 0;
right: -100%;
}
.box:hover .over-layer:after{
right:0;
}
.box .over-layer i{
position: relative;
top: 40%;
font-size: 35px;
color: #13afea;
opacity:0;
z-index: 2;
transition: all 0.40s ease-in-out 0.1s;
}
.box:hover .over-layer i{
opacity:1;
transition-delay: 0.1s;
}
@media only screen and (max-width: 990px) {
.box{  margin-bottom:20px; }
}



Теги:
0

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

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