5 Replies
thie is the svg code of that image:
can anyone help me convert it into clip path so that it would be easy to make it look like this. n after that i can apply just a border to that
https://yoksel.github.io/relative-clip-path/
check this one
I've tried it now
but you will need to make your SVG to be filled, not just a border
like a whole rectangle but of course with those swiggly border
note that you will need to enter your svg path values only, like this:
see here:
https://codepen.io/ThatMartianDev/pen/gOZMmYL
sorry i butchered your svg on figma lol
but yeah you will need to make it a full rectangle
then apply that to your "package" card container
i got till here:
but the thing is now it is adding a a white background on it
i guess it is clipping the whole div instead of just the border
its working for your example too, this clip path, but the same thing, adding a white background over the element
you can try it on the same link
https://codepen.io/ThatMartianDev/pen/gOZMmYL
check the codepen again
I updated it
so all you need now to apply that effect to your cards is copy and paste the svg into your html, and add the css I commented in the codepen into your css file
I'm sure there's a better way to use that svg, but it's getting late here and I'll need to close my laptop 🤞🏻