How to round out corners when using CSS clip-path

前端 未结 6 1806
孤城傲影
孤城傲影 2021-01-04 00:56

I want to be able to round out the 3 leftmost corners on this shape that I have created, any idea how that can be done?

6条回答
  •  半阙折子戏
    2021-01-04 01:54

    I don't have a comment option yes, so I'm writing it as an answer..

    you need to write as many points as possible to round the corner. Nothig else... for, example a few more points to make lower part bit rounder:

    -webkit-clip-path: polygon(100% 0%, 100% 100%, 100% 100%, 25% 100%, 5% 70%,1% 60%, 0% 50%, 25% 0%);
    

    oh, yes, or SVG as comment people here.. :)

提交回复
热议问题