js实现一个带呼吸声的呼吸灯动画效果代码

代码语言:html

所属分类:动画

代码描述:js实现一个带呼吸声的呼吸灯动画效果代码

代码标签: 带呼 吸声 呼吸 动画 效果

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">





    <style>
        body {
          margin: 0px;
          height: 100vh;
          width: 100vw;
          margin: 0px;
          padding: 0px;
          display: flex;
          justify-content: center;
          align-items: center;
          background: black;
        }
        
        .wrap {
          height: 40vh;
          width: 40vh;
          background: black;
          border-radius: 100%;
          display: flex;
          justify-content: center;
          align-items: center;
          border: 1px solid #f9a6d7;
          box-sizing: border-box;
          box-shadow: 0px 0px 62px #f5a1d3;
        }
        
        .circle {
          height: 10vh;
          width: 10vh;
          background: pink;
          border-radius: 100%;
          background-color: #ffe588;
          background-image: linear-gradient(45deg, #ffe588 0%, #ffa2df 100%);
          border: 1px solid #f9a6d7;
          box-sizing: border-box;
          box-shadow: 0px 0px 62px #f5a1d3;
          opacity: 75%;
        }
        
        .pulse {
          animation-name: pulse_animation;
          animation-duration: 12s;
          transform-origin: center center;
          animation-iteration-count: infinite;
          animation-timing-function: linear;
        }
        @keyframes pulse_animation {
      .........完整代码请登录后点击上方下载按钮下载查看

网友评论0