Hover Effect Style 201

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

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

Williamson

Web Developer

Kristiana

Заголовок

Steve Thomas

Web Developer
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-200/img-1.jpg">
<div class="box-content">
<h3 class="title">Williamson</h3>
<span class="post">Web Developer</span>
</div>
<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 class="col-md-4 col-sm-6">
<div class="box">
<img src="https://fokit.ru/demo/images/hover-effect/hover-effect-style-200/img-2.jpg">
<div class="box-content">
<h3 class="title">Kristiana</h3>
<span class="post">Web Designer</span>
</div>
<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>

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

.box{
border-radius: 10px;
overflow: hidden;
position: relative;
}
.box:before{
content: "";
width: 170%;
height: 100%;
border-radius: 10px;
background-image: repeating-radial-gradient(circle at 49% 49%, transparent 15%, rgba(0,0,0,0.5) 20%, rgba(0,0,0,0.5) 34%, transparent 37%);
background-size: 100px 100px;
position: absolute;
top: 0;
left: 0;
opacity: 0;
z-index: 1;
transform: scale(1.3);
transition: all 0.3s ease 0s;
}
.box:hover:before{
opacity: 1;
transform: scale(1);
}
.box img{
width: 100%;
height: auto;
transform: scale(1.2);
transition: all 0.3s ease 0s;
}
.box:hover img{
filter: blur(1px);
transform: scale(1);
}
.box .box-content{
padding: 10px 15px 10px 20px;
border-radius: 0 0 0 20px;
background: #f26322;
text-align: right;
color: #fff;
position: absolute;
top: -100%;
right: -100%;
opacity: 0;
z-index: 2;
transition: all 0.3s ease 0s;
}
.box:hover .box-content{
top: 0;
right: 0;
opacity: 1;
}
.box .title{
display: block;
font-size: 20px;
font-weight: 600;
text-transform: uppercase;
margin: 0 0 3px 0;
position: relative;
}
.box .post{
display: block;
font-size: 15px;
color: #fff;
letter-spacing: 1px;
text-transform: capitalize;
}
.box .icon{
padding: 0;
margin: 0 0 0 10px;
list-style: none;
position: absolute;
bottom: 10px;
left: 10px;
z-index: 1;
}
.box .icon li{
display: inline-block;
margin: 0 7px 0 0;
opacity: 0;
transform: translateY(50%);
transition: all 0.3s ease 0.2s;
}
.box:hover .icon li:last-child{ transition-delay: 0.4s; }
.box:hover .icon li{
opacity: 1;
transform: translateY(0);
}
.box .icon li a{
display: block;
width: 35px;
height: 35px;
line-height: 35px;
border-radius: 50% 50% 50% 0;
background: #f26322;
font-size: 19px;
color: #fff;
text-align: center;
transition: all 0.3s ease 0s;
}
.box .icon li a:hover{
background: #fff;
color: #f26322;
box-shadow: 0 0 5px #f26322 inset, 0 0 0 2px #f26322;
}
@media only screen and (max-width:990px){
.box{ margin-bottom: 30px; }
}



Теги:
0

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

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