Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

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.
}
 
PREVIOUS NEXT
Tagged: #image #crop #css
ADD COMMENT
Topic
Name
9+7 =