please anyone knows how I can clip a div to get the green shapes in the attached image, using clip-path or anything else Attached Image here
I have tried using clip path but I am not getting the desired results. I did something like the below but can’t get the rounded corners, or make it look exactly like this image
clip-path: polygon(
50% 0%,
68% 0,
82% 19%,
100% 44%,
76% 70%,
52% 97%,
0 66%,
0 52%,
0 35%,
0 0
);
2
Answers
You can use CSS’s
border-radius
andtransform
properties rather thanclip-path
to simplify this.Additionally, it’s preferred to use
pseudo-elements
of CSS to get the desired shape elementsThis example would help you:
SVGs are ideal for quickly reproducing graphical elements like these. Depending on how you want this background to behave on different screen sizes, you might need to split it up into multiple parts.