js和css实现带泡泡音效的我爱你爱情表白文字动画效果代码

代码语言:html

所属分类:表白

代码描述:js和css实现带泡泡音效的我爱你爱情表白文字动画效果代码

代码标签: 文字 表白 爱心

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">



    <style>
        *, *:before, *:after {
          box-sizing: border-box;
          margin: 0;
          padding: 0;
        }
        
        html, body {
          min-height: 100vh;
          display: flex;
          justify-content: center;
          align-items: center;
          background-color: #FFC568;
          font-size: 62.5%;
          font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        }
        @media screen and (max-width: 520px) {
          html, body {
            /* don't know how to set default units to rem in mojs :(( */
          }
        }
        
        .container {
          width: 50rem;
          height: 20rem;
          position: relative;
        }
        
        .svg-container {
          z-index: 2;
          position: absolute;
        }
        
        .mo-container {
          width: 100%;
          height: 100%;
        }
        
        .line {
          fill: none;
          stroke: #FFFFFF;
          stroke-width: 8;
          stroke-linecap: round;
          stroke-miterlimit: 10;
        }
        
        .lttr {
          fill: #763C8C;
        }
        
        .sound {
          position: fixed;
          color: #763C8C;
          font-size: 1.6rem;
          bottom: 1rem;
          right: 1rem;
          text-decoration: underline;
          cursor: default;
        }
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0