Answers for "image crop using css 1:1"

CSS
2

image crop using css 1:1

.img {
	object-fit: cover;         
  	object-position: 100% 0;  //move image position in x direction. 
  	object-position: 0 100%; //move image position in y direction.
}
Posted by: Guest on May-16-2020

Browse Popular Code Answers by Language