Hover Effect Style 177

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

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

Williamson

Web Developer

Kristiana

Web Developer

Steve Thomas

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

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

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

.demo{ background: #4a4a4a; }
.box{
text-align: center;
overflow: hidden;
position: relative;
}
.box:before,
.box:after{
content: "";
width: 100%;
height: 100%;
border: 13px solid rgba(0,0,0,0.5);
position: absolute;
left: 0;
top: 0;
transition: all 0.3s ease 0s;
}
.box:after{
width: 90%;
height: 90%;
background-color: rgba(255,255,255,0.7);
top: 50%;
left: 50%;
opacity: 0;
transform: translateX(-50%) translateY(-50%) scale(2);
}
.box:hover:before{ background: rgba(255,255,255,0.5); }
.box:hover:after{
opacity: 1;
transform: translateX(-50%) translateY(-50%) scale(0.2);
}
.box img{
width: 100%;
height: auto;
}
.box .box-content{
width: 93%;
height: 93%;
background: #fff;
position: absolute;
top: 50%;
left: 50%;
opacity: 0;
z-index: 1;
transform: translateX(-50%) translateY(-50%) scale(0);
transition: all 0.3s ease 0s;
}
.box:hover .box-content{
opacity: 1;
transform: translateX(-50%) translateY(-50%) scale(1);
}
.box .icon{
padding: 15px 0 0 15px;
margin: 0;
list-style: none;
}
.box .icon li a{
display: block;
width: 35px;
height: 35px;
line-height: 35px;
background: #fff;
border-radius: 20% 0;
font-size: 16px;
color: #8633cb;
border: 1px solid #8633cb;
margin-bottom: 5px;
opacity: 0;
position: relative;
left: -100px;
transition: all 0.3s ease-in-out 0s;
}
.box .icon li a:hover{
border-radius: 50%;
background: #8633cb;
box-shadow: 0 0 5px #8633cb;
color: #fff;
}
.box:hover .icon li a{
opacity: 1;
left: 0;
}
.box .content-inner{
padding: 5px 10px;
opacity: 0;
position: absolute;
bottom: 5px;
right: -150px;
transition: all 0.3s ease 0.2s;
}
.box:hover .content-inner{
right: 0;
opacity: 1;
}
.box .title{
font-size: 20px;
font-weight: 700;
font-style: italic;
color: #8633cb;
letter-spacing: 1px;
text-transform: uppercase;
margin: 0 0 5px 0;
}
.box .post{
display: inline-block;
font-size: 14px;
font-style: italic;
color: #000;
}
@media only screen and (max-width:990px){
.box{ margin-bottom: 30px; }
}



Теги:
0

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

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