I'm trying to generate a clip path for my project.
it should look like this:
The corners should be curved.
Can someone help me do this? Here's what I did:
<div class="logo"></div>
<style>
.logo{
position: absolute;
width: 50px;
height: 50px;
left: calc(50% - 25px);
top: 25px;
background-color: black;
clip-path: polygon(50% 0, 0% 100%, 50% 85%, 50% 10%, 93% 93%,
50% 80%, 50% 1%, 50% 86%, 100% 100%, 50% 0);
}
</style>
I'm getting an output similar to this:
How can I do this using clip path?
Or is my approach (clip path) wrong?
Help me make this icon using only CSS?