I'm trying to create a responsive image slider for a project I'm working at the moment.
The challenge is to shape the image slider with a particular shape from the brand. It's basically a 'rectangle' with a corner cut and rounded border radius.
Here is an animated example of what I'm trying to achieve
As you can see on the snippet below, I have tried to re-create it using clip-path: path() method, however, the size is static and not responsive at all.
HTML/CSS Example:
section{
width:100vw;
height:100vh;
display:flex;
justify-content: center;
align-items: center;
}
.slider-container{
width: 90vw;
height: 600px;
background: #A490FF;
clip-path: path('M0 30C0 13.4315 13.4315 0 30 0H1625C1641.57 0 1655 13.4315 1655 30V548C1655 564.569 1641.57 578 1625 578H333.043C324.531 578 316.201 575.531 309.064 570.892L9.10025 375.915C3.42439 372.226 0 365.916 0 359.146V30Z');
}
<section>
<div class="slider-container"></div>
</section>
Thanks in advance for your help :)
Dzainr