Hover Effect Style 78

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

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

Williamson

заговолок

Kristiana

Web Developer

Steve Thomas

Graphic Designer
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-78/img-1.jpg">
<div class="box-content">
<h3 class="title">Williamson</h3>
<span class="post">web designer</span>
</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-78/img-2.jpg">
<div class="box-content">
<h3 class="title">Kristiana</h3>
<span class="post">Web Developer</span>
</div>
</div>
</div>
</div>
</div>

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

.box{
position: relative;
overflow: hidden;
transition: all 0.5s ease 0s;
}
.box:hover{
cursor: pointer;
}
.box img{
width: 100%;
height: auto;
transition: all 0.5s ease 0s;
}
.box:hover img{
transform: scale(1.1);
}
.box .box-content{
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.7);
position: absolute;
top: 70px;
left: 70px;
padding-top: 39%;
text-align: center;
color: #fff;
opacity: 0;
transition: all 0.5s ease 0s;
}
.box:hover .box-content{
top: 0;
left: 0;
opacity: 1;
}
.box .title{
font-size: 24px;
margin-bottom: 10px;
text-transform: capitalize;
}
.box .post{
font-size: 14px;
text-transform: capitalize;
}
@media only screen and (max-width: 980px){
.box{ margin-bottom: 20px; }
}



Теги:
0

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

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