Please does anyone know the package that does images in the shape

image
Please does anyone know the package that does images in these kind of angular shape nextjs/reactjs

you can do it with pure CSS,

create a div, then include the image inside it, and one of the most important properties for it is to use:

.parent-el {
  overflow: hidden;
  z-index: 999; /* or sth high */
  position: relative;
  transform: rotate(45deg);
}
.child-el {
/* you can do the width and change img values here*/
}

Take a look at the CSS clip-path property:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.