纯css实现单个div波动效果

代码语言:html

所属分类:动画

代码描述:纯css实现单个div波动效果

代码标签: 单个 div 波动 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
* {
  font-family: sans-serif;
  font-weight: 100;
  color: #222;

  --purple: #2d2e40;
}
body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: #eee;
}

.container {
  width: 400px;
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: inset 0px 0px 16px 2px #d1d1d1;
}

.container::after,
.container::before {
  content: "";
  display: block;
  position: absolute;
  top: 200px;.........完整代码请登录后点击上方下载按钮下载查看

网友评论0