Hover Effect Style 45

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

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

Web Developer

Read More

заговолокer

Read More

Lorem ipsum

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-45/img-1.jpg" alt=""/>
<div class="box-content">
<h3 class="title">Web Developer</h3>
<a href="#" class="read">Read More</a>
</div>
</div>
</div>
</div>
</div>

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

.box{
position: relative;
overflow: hidden;
}
.box img{
width: 100%;
height: auto;
transform: translateY(0);
transition: transform 0.30s ease 0s;
}
.box:hover img{
transform: translateY(-10%);
}
.box-content{
position: absolute;
bottom: 0;
width: 100%;
padding: 25px;
background: #333;
transform: translateY(100%);
transition: all 0.30s ease 0s;
}
.box:hover .box-content{
transform: translateY(0);
}
.box-content .title{
color: #fff;
margin: 0;
padding: 0;
display:inline-block;
text-transform: capitalize;
}
.box-content .read{
float: right;
display: inline-block;
width: 100px;
height: 30px;
line-height: 30px;
color: #fff;
text-align: center;
background: #1dcfd1;
}
.box-content .read:hover{
text-decoration: none;
}
@media only screen and (max-width: 990px){
.box{ margin-bottom: 20px; }
}
@media only screen and (max-width: 359px){
.box-content .title{ font-size: 19px; }
.box-content .read{ width: 85px; }
}



Теги:
0

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

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