Need help creating a complex button in css
Hello everyone, I've design for this button andI want to create it using css. I'm having difficulty finding approach to build it.
Can someone please help me breaking down the logic please.
I've this code to cut corners of the container.
Any help would be appreciated.
3 Replies
I found this article which has a generator for the clip-path on a pseudo-element to add this. You can just tweak the values: https://css-tricks.com/cut-corners-using-css-mask-and-clip-path-properties/
The generator: https://css-generators.com/custom-corners/
thanks for sharing this @jochemm , this would help me a lot.
I also found a solution to create the exact button, using absolute positioning I was able to create the exact button needed, putting it here, in case anyone in future needs some reference.
Really appreciate your help and quick support. Thanks
@Kushagra
border-image
with an SVG can get this done in just a few lines of CSS no extra div or pseudo elements: https://codepen.io/jsnkuhn/pen/vYQQVpy?editors=1100