css天气预报下雨天晴loading加载动画效果代码

代码语言:html

所属分类:加载滚动

代码描述:css天气预报下雨天晴loading加载动画效果代码

代码标签: 天气 加载 动画

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">




    <style>
        body {
          background: #efefef;
        }
        
        .preloader {
          position: absolute;
          margin-left: -55px;
          margin-top: -100px;
          height: 110px;
          width: 110px;
          left: 50%;
          top: 50%;
        }
        
        svg {
          width: 110px;
          height: 110px;
        }
        
        path {
          stroke: #9ea1a4;
          stroke-width: 0.25;
          fill: #241E20;
        }
        
        #cloud {
          position: relative;
          z-index: 2;
        }
        
        #cloud path {
          fill: #efefef;
        }
        
        #sun {
          margin-left: -10px;
          margin-top: 6px;
          opacity: 0;
          width: 60px;
          height: 60px;
          position: absolute;
          left: 45px;
          top: 15px;
          z-index: 1;
          animation-name: rotate;
          animation-duration: 16000ms;
          animation-iteration-count: infinite;
          animation-timing-function: linear;
        }
        
        #sun path {
          stroke-width: 0.18;
          fill: #9ea1a4;
        }
        
        @keyframes rotate {
          0% {
            transform: rotateZ(0deg);
          }
          100% {
            transform: rotateZ(360deg);
          }
        }
        /* Rain */
        .rain {
          positi.........完整代码请登录后点击上方下载按钮下载查看

网友评论0