Can I un-skew the content inside a skewed carousel, while preserving the diagonal effect on the slide container?
Check out the Jsfiddle example here - https://jsfiddle.net/czcjt3no/1/
<div class="section">
<div class="grid poly--holder">
<div class="poly-item">
<div class="poly-item__content" style="background-image: url(https://unsplash.it/1000/1000/?random);">sdsfsdsfsdsdfjsdkjfskds</div>
</div>
<div class="poly-item">
<div class="poly-item__content" style="background-image: url(https://unsplash.it/1100/1000/?random);">sdsfsdsfsdsdfjsdkjfskds</div>
</div>
<div class="poly-item">
<div class="poly-item__content" style="background-image: url(https://unsplash.it/1200/1000/?random);">sdsfsdsfsdsdfjsdkjfskds</div>
</div>
<div class="poly-item">
<div class="poly-item__content" style="background-image: url(https://unsplash.it/1300/1000/?random);">sdsfsdsfsdsdfjsdkjfskds</div>
</div>
<div class="poly-item">
<div class="poly-item__content" style="background-image: url(https://unsplash.it/1400/1000/?random);">sdsfsdsfsdsdfjsdkjfskds</div>
</div>
</div>
</div>
.poly--holder {
overflow: hidden;
.poly-item {
box-sizing: border-box;
margin: 0;
transform: skewX(-10deg);
height: 400px;
.poly-item__content {
transform: skewX(10deg);
background-size: cover;
background-position: 50%;
height: 100%;
}
}
}