Need to make wavy div borders like this:
here is two divs with image backgrounds.. everywhere I find solution to make svg or do something like this:
.wave {
height: 50px;
position: relative;
}
.wave::before {
content: "";
position: absolute;
left: 0;
bottom: 0;
right: 0;
background-repeat: repeat;
height: 10px;
background-size: 20px 20px;
background-image: radial-gradient(circle at 10px -5px, transparent 12px, aquamarine 13px);
}
.wave::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
right: 0;
background-repeat: repeat;
height: 15px;
background-size: 40px 20px;
background-image: radial-gradient(circle at 10px 15px, aquamarine 12px, transparent 13px);
}
<div class="wave"></div>
but in both solution if make background color transparent it has no effect..
so how could make div with curved edge?
You need a svg path to clip the first image with
clip-path
css/svg property.Example on Codepen