Earlier, I inquired about skewing a collection of images and was pleased with the results.
https://i.sstatic.net/Skquv.png
.container {
font-size: 0;
height: 215px;
margin: 30px 50px;
text-align: center;
color: black;
}
.box1 {
...
<div class="container">
<div class="box1"><span style="background-image:url(illustris1.png)"></span></div>
...
My code may be longer than the other thread, but it allows for easy resizing of each image.
Now, my goal is to only skew the inner portion of the far left end box1
and the far right end box6
within the container
. It resembles this desired outcome: Skew one side only of an element.
I've spent hours trying various methods without success. I need to find a way to skew only one side of box1
and box6
without distorting the images.