Witam
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<div class="card">
<div class="bg_card"></div>
<div class="price">Cena: 50 zł</div>
<div class="by_now">Kup Teraz</div>
</div>
<script>
$(document).ready(function(){
$( ".bg_card" ).hover(
function() {
$(this).css({"height":"100%"});
}, function() {
$(this).css({"height":"320px"});
}
);
});
</script>
body{
background-color: grey;
}
*{
box-sizing: border-box;
transition: all .5s;
}
.card{
width: 300px;
height: 400px;
border: 5px solid #332830;
padding: 7px;
text-align: center;
overflow: hidden;
}
.bg_card{
width: 276px;
height: 320px;
border: 5px solid #aba8aa;
background-image: url("http://ecsmedia.pl/c/html-i-css-zaprojektuj-i-zbuduj-witryne-www-w-iext43254859.jpg");
background-size: cover;
background-repeat: no-repeat;
}
.price, .by_now{
display: inline-block;
width: 49%;
height: 50px;
margin-top: 7px;
background-color: #332830;
color: white;
font-size: 22px;
line-height: 53px;
}
.price:hover, .by_now:hover{
color: #2c2929;
background-color: #aba8aa;
}
:hover{
cursor: pointer;
}