Answer the question
In order to leave comments, you need to log in
How to make a smooth hover per class?
Hello everyone , I
have this html:
<a class="outside" href="#">
<div class="outside_hover cf">
<i class="wood f_left"></i>
<span class="f_left">Каркас и фундамент</span>
<p class="f_left">Каркас и фундамент
</p>
</div>
</a>
.outside{
background: url("../img/shutterstock_336992036.jpg") no-repeat scroll center;
background-size: cover;
height: 668px;
position: relative;
display: block;
transition:background 0.2s;
&:hover {
.outside_hover {
display: block;
margin: 0 auto;
background: rgba(0, 0, 0, 0.8) none repeat scroll 0 0;
@include size(100%, 668px);
position: relative;
Answer the question
In order to leave comments, you need to log in
And in hover also specify transition, maybe it will work) or trytransition-duration: 0.2s;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question