div+css布局实现麦克风语音输入圈圈动画效果代码

代码语言:html

所属分类:动画

代码描述:div+css布局实现麦克风语音输入圈圈动画效果代码

代码标签: div css 布局 麦克风 语音 输入 圈圈 动画

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

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <style>
        body {
      overflow: hidden;
      background: #3b0e68;
      background: radial-gradient(circle, #3b0e68 0%, #1a084e 100%);
    }
    
    .mic {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: #fff;
    }
    .mic::before, .mic::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      border-radius: 100%;
      z-index: 2;
      box-shadow: 0 0 20px 20px #1c084f;
    }
    .mic::before {
      width: 400px;
      height: 400px;
      background-color: #1a084e;
    }
    .mic::after {
      width: 250px;
      height: 250px;
      background-color: #2f1e5f;
      animation: circle-size 0.8s linear infinite alternate;
    }
    .mic-icon {
      box-sizing: border-box;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(5);
      display: block;
      width: 26px;
      height: 22px;
      border-bottom-left-radius: 120px;
      border-bottom-right-radius: 120px;
      border: 2px solid;
      border-top: 0;
      margin-top: 20px;
      z-index: 3;
    }
    .mic-icon::before, .mic-icon::after {
      content: "";
      display: block;
      box-sizing: border-box;
      position: absolute;
    }
    .........完整代码请登录后点击上方下载按钮下载查看

网友评论0