1
I want to add an Event Hover that slightly increases the size of the image I’m using from the background, but to keep it responsive accurate background-size:cover.
follows an excerpt of code made with scss:
&_container_row_{$i}{
background: url('../img/BurgerImage{$i}.png') no-repeat;
background-size: cover;
background-position: center;
padding: 30px;
border-radius: 15px;
@include imageTitle;
transition: background-size 0.3s ease-in-out;
}
&_container_row_{$i}:hover{
background-size: cover;
}
I’d like to do something like:
&_container_row_{$i}:hover{
background-size: calc(cover + 15%);
}
Thank you from the outset to those who can answer!