zoukankan      html  css  js  c++  java
  • css3 模拟动态加载图标

    <!DOCTYPE html>
    <html>
    <head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">

    <title></title>
    <style>
    html{
    font-size: 75px;
    }
    .dd{
    position: relative;
    display: inline-block;
    70px;
    height: 70px;
    overflow: hidden;
    margin: 100px;
    /*animation: spin 1s infinite steps(8);*/
    }
    .d:before,.d:after,.dd:before,.dd:after{
    content: '';
    position: absolute;
    top: 0px;
    left: 33px;
    4px;
    height: 20px;
    border-radius: 1px;
    box-shadow: 0 50px rgba(21, 126, 230, 0.5);
    /*-webkit-transform-origin: 50% 22px;*/
    transform-origin: 50% 35px;
    background: red;
    }
    .d{
    /* 80px;*/
    /*height: 80px;*/
    }
    .d:before{
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
    }
    .d:after{
    -webkit-transform: rotate(-135deg);
    transform: rotate(-90deg);
    }
    .dd:after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    }
    @keyframes spin{
    to{
    -webkit-transform:rotate(1turn);
    transform:rotate(1turn)
    }
    }


    .pl-loading {
    position: relative;
    display: inline-block;
    .36rem;
    height: .36rem;
    overflow: hidden;
    /*-webkit-animation: spin 1s infinite steps(8);*/
    /*animation: spin 1s infinite steps(8);*/
    }

    .pl-loading:after, .pl-loading:before, .pl-loading>div:after, .pl-loading>div:before {
    content: '';
    position: absolute;
    top: 0;
    left: .16rem;
    .04rem;
    height: .12rem;
    border-radius: .02rem;
    box-shadow: 0 0.24rem rgba(150,153,156,.5);
    /*-webkit-transform-origin: 50% .18rem;*/
    transform-origin: 50% .18rem;
    background: #96999c;
    }
    .pl-loading>div:before {
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
    }

    .pl-loading>div:after {
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
    }
    .pl-loading:after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    }
    </style>
    </head>
    <body>
    <div class="dd">
    <div class="d"></div>
    </div>

    <div>
    <div class="pl-loading">
    <!--<div></div>-->
    </div>
    </div>

    </body>
    </html>
  • 相关阅读:
    Android JNI 本地开发接口
    Android 主题切换 小结
    Android 屏幕适配
    android 中获取视频文件的缩略图(非原创)
    android 多媒体数据库(非原创)
    Android tween 动画 XML 梳理
    activity 四种启动模式
    Activity 横竖屏切换
    Android Activity 管理 (AppManager)(非原创)
    Android moveTaskToBack(booleannon Root)
  • 原文地址:https://www.cnblogs.com/itliulei/p/10297466.html
Copyright © 2011-2022 走看看