How to make slope box in css.
I have one card. in that card, i have one slope. i tried using clippath for creating that slope. but it doesn't worked me out. please help me. i have attached both images. first one was design. second one was i trying to make that design.just need that slopy curve,
code:
I tried but not working out. can anyone please help me with this out.
stackblitz link: https://stackblitz.com/edit/nextjs-ygovq5?file=app%2Fpage.tsx
4 Replies
You commented out the clip path, so it's not going to do anything. Also the coordinates in that path do not match the shape in your example.
Also, the shape that you want has a slight bit of curvature at the corners. The approach that you are using will only work if you are willing to accept sharp corners.
can u help me with that..
@ChooKing i know it wont work. but i dont know how to implement that ya. i tried a lot
If you want to use this approach and you can accept the lack of rounding, this is an example of how to do it: https://codepen.io/chooking/pen/RwmXNBa
@ChooKing Thank u so much..