0

I'm trying to generate a clip path for my project. it should look like this:

Logo

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:

My Output

How can I do this using clip path?
Or is my approach (clip path) wrong? Help me make this icon using only CSS?

1 Answer 1

1

To curve clip-path is css you must use ellipse, but with ellipse you can not draw polygon, so best answer for your question is to draw svg clip-path then use it in css with clip-path: url(#clipped);

also see this answer

Sign up to request clarification or add additional context in comments.

1 Comment

Hi, this answered my doubt on curving the corner. But my main question is to generate that logo. How can I do so? Because I think I'm close but not able to finish it. If you can help me further.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.