Hover Effect Style 130

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

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

Williamson

заговолокer

Kristiana

Web Developer

Steve Thomas

заговолокer
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-130/img-1.jpg">
<div class="box-content">
<h3 class="title">Williamson</h3>
<span class="post">Web Designer</span>
<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-130/img-2.jpg">
<div class="box-content">
<h3 class="title">Kristiana</h3>
<span class="post">Web Developer</span>
<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{ position: relative; }
.box:before,
.box:after{
content: "";
width: 90%;
height: 90%;
background: rgba(36, 50, 86, 0.3);
border-top: 2px solid #243256;
border-left: 2px solid #243256;
position: absolute;
top: 5%;
left: 5%;
transform: scale(0);
transform-origin: 0 0 0;
transition: all 0.5s ease 0s;
}
.box:after{
border-bottom: 2px solid #243256;
border-right: 2px solid #243256;
transform-origin: 100% 100% 0;
}
.box:hover:before,
.box:hover:after{
transform: scale(1);
}
.box img{
width: 100%;
height: auto;
}
.box .box-content{
width: 100%;
text-align: center;
position: absolute;
top: 32%;
left: 0;
opacity: 0;
z-index: 1;
transition: all 0.5s ease 0s;
}
.box:hover .box-content{
opacity: 1;
}
.box .title{
font-size: 20px;
font-weight: 700;
color: #fff;
letter-spacing: 1px;
text-transform: uppercase;
margin-bottom: 10px;
}
.box .post{
display: block;
font-size: 15px;
color: #fff;
margin-bottom: 10px;
}
.box .icon{
padding: 0;
margin: 0;
list-style: none;
}
.box .icon li{
display: inline-block;
}
.box .icon li a{
display: block;
width: 35px;
height: 35px;
line-height: 35px;
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: 50%;
}
@media only screen and (max-width:990px){
.box{ margin-bottom: 30px; }
}



Теги:
0

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

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