I am attempting to slice a small element out of an image using the skew
function.
However, when applying skew, the image appears distorted and broken. I would like to maintain the image's original orientation without rotation.
This is the code snippet I have used:
.image-skew{
/* transform: skewX(-25deg); */
position: absolute;
width: 100%;
height: auto;
}
.img-skew-invest {
transform: skewX(-25deg);
display: flex;
}
<div class="image-skew">
<img class="img-skew-invest" src="http://thebusiness.vn/uploads/business360/chuyenkinhdoanh/lazada-co-noi-got-foodpanda-roi-khoi-viet-nam/lazada-co-noi-got-foodpanda-roi-khoi-viet-nam.png" alt="" style="width: 100%; height: auto"/>
</div>
Using the same image,
I cropped a portion of the picture with skew, although it should not result in any rotation.