1
.featured-items__image-container {
height: 250px;
overflow: hidden;
width: 370px;
}
.featured-items__item-image {
@include animate(all, 500ms);
cursor: pointer;
height: 100%;
width: 100%;
}
.featured-items__item-image:hover {
height: 120%;
width: 120%;
}
<div class="featured-items__image-container">
<img class="featured-items__item-image" src="https://unsplash.it/370/250"/>
</div>
を中心に、私は、幅と高さの両方に20%を追加しています。どちらが完璧に動作しますか。しかし、イメージは中心にない、それは私が苦労しているものです。ズームすると、画像がちょうど右に「成長」します。任意のヒント?
完璧!本当にありがとう :) – Tiwaz89