Service Box — стиль 92

Подробное описание и демонстрация работы блока о нас под номером №92 для библиотеки Bootstrap. Html и CSS код для реализации блока service box на сайте как на изображении.

Демо CSS блока о сервисе — стиль 92

заговолок

Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui quaerat fugit quas veniam perferendis repudiandae sequi, dolore quisquam illum.

подробнее

Создание сайтов

Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui quaerat fugit quas veniam perferendis repudiandae sequi, dolore quisquam illum.

подробнее

Адаптивный дизайн

Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui quaerat fugit quas veniam perferendis repudiandae sequi, dolore quisquam illum.

подробнее
html разметка для реализации блока о компании

<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css /> -->
<div class="container">
<div class="row">
<div class="col-md-3 col-sm-6">
<div class="serviceBox">
<div class="service-icon">
<i class="fa fa-globe"></i>
</div>
<h3 class="title">Web Design</h3>
<p class="description">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui quaerat fugit quas veniam perferendis repudiandae sequi, dolore quisquam illum.
</p>
<a class="read-more" href="">Read More</a>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="serviceBox blue">
<div class="service-icon">
<i class="fa fa-users"></i>
</div>
<h3 class="title">Web Development</h3>
<p class="description">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui quaerat fugit quas veniam perferendis repudiandae sequi, dolore quisquam illum.
</p>
<a class="read-more" href="">Read More</a>
</div>
</div>
</div>
</div>

css разметка для реализации блока о компании

.demo{ padding-bottom: 40px; }
.serviceBox{
font-family: 'Roboto', sans-serif;
text-align: center;
padding: 0 10px;
}
.serviceBox .service-icon{
color: #fff;
background-color: rgba(0,0,0,0.1);
font-size: 50px;
line-height: 170px;
width: 150px;
height: 150px;
margin: 0 auto 30px;
position: relative;
-webkit-clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
transition: all 0.3s ease 0s;
}
.serviceBox:hover .service-icon{ font-size: 60px; }
.serviceBox .service-icon:before{
content: '';
height: 90%;
width: 90%;
background: linear-gradient(to right,#F64354 49%,#DC3F55 50%);
transform: translateX(-50%) translateY(-50%);
position: absolute;
left: 50%;
top: 50%;
z-index: -1;
-webkit-clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
transition: all 0.3s ease 0s;
}
.serviceBox:hover .service-icon:before{
height: 83%;
width: 83%;
}
.serviceBox .title{
color: #404040;
font-size: 20px;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
margin: 0 0 10px;
transition: all 0.3s ease 0s;
}
.serviceBox:hover .title{ color: #DC3F55; }
.serviceBox .description{
color: #808080;
font-size: 15px;
line-height: 25px;
letter-spacing: 1px;
margin-bottom: 20px;
}
.serviceBox .read-more{
color: #fff;
background-color: #DC3F55;
font-size: 15px;
font-weight: 600;
text-transform: capitalize;
letter-spacing: 1px;
text-align: center;
padding: 10px 15px;
margin: 0 auto;
opacity: 0;
display: inline-block;
-webkit-clip-path: polygon(0% 15%, 16% 18%, 15% 0%, 85% 0%, 82% 16%, 100% 15%, 100% 85%, 82% 82%, 85% 100%, 15% 100%, 18% 83%, 0% 85%);
clip-path: polygon(0% 15%, 16% 18%, 15% 0%, 85% 0%, 82% 16%, 100% 15%, 100% 85%, 82% 82%, 85% 100%, 15% 100%, 18% 83%, 0% 85%);
transition: all 0.3s ease 0s;
}
.serviceBox:hover .read-more{ opacity: 1; }
.serviceBox .read-more:hover{
color: #DC3F55;
background-color: rgba(0,0,0,0.1);
}
.serviceBox.blue .service-icon:before{ background: linear-gradient(to right,#16C2D0 49%,#13AEB0 50%); }
.serviceBox.blue:hover .title{ color: #13AEB0; }
.serviceBox.blue .read-more{ background-color: #13AEB0; }
.serviceBox.blue .read-more:hover{
color: #13AEB0;
background-color: rgba(0,0,0,0.1);
}
.serviceBox.gray .service-icon:before{ background: linear-gradient(to right,#3C506B 49%,#304155 50%); }
.serviceBox.gray:hover .title{ color: #304155; }
.serviceBox.gray .read-more{ background-color: #304155; }
.serviceBox.gray .read-more:hover{
color: #304155;
background-color: rgba(0,0,0,0.1);
}
.serviceBox.yellow .service-icon:before{ background: linear-gradient(to right,#FDC72B 49%,#EDB21B 50%); }
.serviceBox.yellow:hover .title{ color: #EDB21B; }
.serviceBox.yellow .read-more{ background-color: #EDB21B; }
.serviceBox.yellow .read-more:hover{
color: #EDB21B;
background-color: rgba(0,0,0,0.1);
}
@media only screen and (max-width:990px){
.serviceBox{ margin-bottom: 40px; }
}



Теги:
0

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

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