原生js实现下雪的新年倒计时动画效果代码

代码语言:html

所属分类:动画

代码描述:原生js实现下雪的新年倒计时动画效果代码

代码标签: 新年 倒计时 下雪 动画

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

<html>

<head>
    <style>
        @import url("https://fonts.googleapis.com/css?family=Aleo");
        
        :root {
          font-family: "Aleo", sans-serif;
        }
        
        html,
        body {
          width: 100%;
          height: 100%;
          padding: 0;
          margin: 0;
          background: rgb(119, 13, 13);
          background: radial-gradient(
            circle,
            rgba(119, 13, 13, 0.92) 64%,
            rgba(0, 0, 0, 0.6) 100%
          );
        }
        
        canvas {
          width: 100%;
          height: 100%;
        }
        
        .label {
          font-size: 2.2rem;
          background: url("//repo.bfw.wiki/bfwrepo/image/61c518320f647.png");
          background-clip: text;
          -webkit-background-clip: text;
          color: transparent;
          animation: moveBg 30s linear infinite;
        }
        
        @keyframes moveBg {
          0% {
            background-position: 0% 30%;
          }
          100% {
            background-position: 1000% 500%;
          }
        }
        
        .middle {
          positio.........完整代码请登录后点击上方下载按钮下载查看

网友评论0