Hover Effect Style 80

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

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

Williamson

read more

Steve Thomas

read more
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-80/img-1.jpg"/>
<div class="box-content">
<h3 class="title">Williamson</h3>
<a href="#" class="read-more">read more</a>
</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-80/img-2.jpg"/>
<div class="box-content">
<h3 class="title">Kristiana</h3>
<a href="#" class="read-more">read more</a>
</div>
</div>
</div>
</div>
</div>

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

.box{
position: relative;
overflow: hidden;
}
.box img{
width: 100%;
height: auto;
transform: scale(1);
transition: all 0.5s ease 0s;
}
.box:hover img{
transform: scale(1.2);
filter: grayscale(0.7) blur(2px);
}
.box .box-content{
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
display: block;
text-align: center;
padding: 30px 0;
opacity: 0;
transition: all 0.5s ease 0s;
}
.box:hover .box-content{
opacity: 1;
}
.box .title{
font-size: 24px;
color: #fff;
background-color: rgba(0,0,0,0.7);
padding: 20px 0;
text-transform: uppercase;
transform: scale(0.5);
transition: all 0.5s ease 0s;
}
.box .read-more{
display: inline-block;
border: 2px solid #fff;
font-size: 14px;
font-weight: 700;
color: #fff;
text-transform: uppercase;
padding: 10px 30px;
transform: scale(0.5);
margin: 50px 0 0;
z-index: 1;
transition: all 0.5s ease 0s;
}
.box:hover .title,
.box:hover .read-more{
transform: scale(1);
}
.box .read-more:hover{
box-shadow: 0 0 15px #fff;
}
@media only screen and (max-width: 990px){
.box{ margin-bottom: 30px; }
}



Теги:
0

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

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