728x90

.img-goods-small{width:40px;height:40px;object-fit: cover}

 

가로 세로 사이즈를 주고 해당 영역에 이미지가 cover 되게 

비율 틀어짐 없이 꽉 차게 나옴

 

비율이 다를 경우 상하 좌우 가 조금씩 잘릴 수는 있음

728x90
728x90

 img { transform: scaleX(-1); }

 

애니메이션 부드럽게 효과

 img { transform: scaleX(-1); transition: .3s; }

728x90

+ Recent posts