相关疑难解决方法(0)

如何创建波浪形CSS?

请查看下面的图片,了解我要创建的内容:

在此处输入图片说明

到目前为止,我有以下内容,但它需要更加“频繁”,例如增加正弦或余弦波的频率。

#wave {
  position: relative;
  height: 70px;
  width: 600px;
  background: #e0efe3;
}

#wave:before {
  content: "";
  display: block;
  position: absolute;
  border-radius: 100% 50%;
  width: 340px;
  height: 80px;
  background-color: white;
  right: -5px;
  top: 40px;
}

#wave:after {
  content: "";
  display: block;
  position: absolute;
  border-radius: 100% 50%;
  width: 300px;
  height: 70px;
  background-color: #e0efe3;
  left: 0;
  top: 27px;
}
Run Code Online (Sandbox Code Playgroud)
<div id="wave"></div>
Run Code Online (Sandbox Code Playgroud)

html css css-shapes

3
推荐指数
1
解决办法
684
查看次数

标签 统计

css ×1

css-shapes ×1

html ×1