logo

Effet sur icone

Style

/* Concerne le cadre */
.feature-block-one .inner-box {
position: relative;
display: block;
padding: 0px 50px 0px 60px;
transition: all 500ms ease;
text-align: center;
}

.feature-block-one .inner-box:hover {
padding-bottom: 51px;
margin-bottom: -51px;
}

.feature-block-one .inner-box .link {
position: absolute;
left: 60px;
bottom: 0px;
opacity: 0;
visibility: hidden;
transition: all 500ms ease;
}
.feature-block-one .inner-box:hover .link {
opacity: 1;
visibility: visible;
}

/* Concerne le rond et l'icone */

.feature-block-one .inner-box .icon-box {
position: relative;
display: inline-block;
width: 140px;
height: 140px;
line-height: 140px;
text-align: center;
border-radius: 50%;
padding: 10px;
margin-bottom: 30px;
transition: all 500ms ease;
border: 1px dashed var(--color-4);
}

.feature-block-one .inner-box .icon-box .icon::before {
position: absolute;
content: "";
width: 100%;
height: 100%;
left: 0px;
top: 0px;
right: 0px;
transform: scale(0, 0);
z-index: -1;
border-radius: 50%;
transition: all 500ms ease;
background-color: var(--color-2);
}

[class^="icon-"],
[class*=" icon-"] {
font-size: 1.2em;
color: #fff;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.icon-icon1::before {
content: "?";
}

.feature-block-one .inner-box .icon-box .icon {
position: relative;
display: inline-block;
width: 120px;
height: 120px;
line-height: 120px;
font-size: 60px;
color: #fff;
background-color: var(--color-1);
border-radius: 50%;
z-index: 1;
transition: all 500ms ease;
}

.feature-block-one .inner-box:hover .icon-box .icon::before {
transform: scale(1, 1);
}
.icoimg {
padding: 30px;
}

/* avec transition sur la couleur
.feature-block-one .inner-box:hover .icon-box .icon {
background-color: var(--color-2);}*/

 

 

HTML

<!-- avec image svg -->
<div class="column is-4">
<div class="feature-block-one">
<div class="inner-box">
<div class="icon-box">
<div class="icon">
<img class="icoimg" src="icon.svg" alt="ico" />
</div>
</div>
<h3>Services</h3>
<p>
Nunc quam ar pretium quis lobortis sequat consetetur diam nuc
bibend ipsum dolor sit amet consecty.
</p>
<div class="link">
<a href="#" target="_blank" rel="nofollow">Plus d'infos</a>
</div>
</div>
</div>
</div>

<!-- avec icone -->
<div class="column is-4">
<div class="feature-block-one">
<div class="inner-box">
<div class="icon-box">
<div class="icon">
<span aria-hidden="true" class="icon-icon1"></span>
</div>
</div>
<h3>Urgent 24/7 Garage Door Repair Services</h3>
<p>
Nunc quam ar pretium quis lobortis sequat consetetur diam nuc
bibend ipsum dolor sit amet consecty.
</p>
<div class="link">
<a
href="#"
target="_blank"
rel="nofollow"
>Plus d'infos</a
>
</div>
</div>
</div>
</div>