Fill a div with a wavy border SVG path

前端 未结 2 1097
你的背包
你的背包 2021-01-18 23:14

I want to fill the

with the color and add shadow to the border but my code is doing this. I actually need it in the way shown in the image.

2条回答
  •  不思量自难忘°
    2021-01-18 23:25

    In your code, you where creating several path elements where each element had one curveTo subpath. Instead, you need one path element with several curveTo subpaths. In your scenario, the simpler quadratic Bezier curve will work well. After the curveTo subpaths, you will need some lineTo subpaths to define the area under the curves. For example...

    
      
    

提交回复
热议问题