首页 > 其他分享 >loading

loading

时间:2023-07-18 18:12:15浏览次数:37  
标签:loading top nth child div clockwise left

<div class="loading">
    <div class="clockwise">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </div>
    <div>In progress</div>
</div>
<style>
    body {
        background-color: antiquewhite;
        margin: 0;
    }

    .loading {
        display: flex;
        width: 1080px;
        height: 1920px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .loading>div:nth-child(2) {
        margin-top: 50px;
        /* margin-left: 5px; */
        font-size: 64px;
    }

    .clockwise {
        width: 512px;
        height: 512px;
    }

    .clockwise,
    .clockwise>div {
        position: relative;

        box-sizing: border-box;
    }

    .clockwise {
        display: block;
        font-size: 0;
        color: #fff;
    }


    .clockwise>div {
        display: inline-block;
        float: none;
        background-color: currentColor;
        border: 0 solid currentColor;
    }



    .clockwise>div {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 128px;
        height: 128px;
        margin-top: -4px;
        margin-left: -4px;
        border-radius: 100%;

        animation: ball-spin-clockwise 10s infinite ease-in-out;
    }

    .clockwise>div:nth-child(1) {
        top: 5%;
        left: 50%;

        animation-delay: -2s;
    }

    .clockwise>div:nth-child(2) {
        top: 18.1801948466%;
        left: 81.8198051534%;

        animation-delay: -5s;
    }

    .clockwise>div:nth-child(3) {
        top: 50%;
        left: 95%;

        animation-delay: -.625s;
    }

    .clockwise>div:nth-child(4) {
        top: 81.8198051534%;
        left: 81.8198051534%;

        animation-delay: -.5s;
    }

    .clockwise>div:nth-child(5) {
        top: 94.9999999966%;
        left: 50.0000000005%;

        animation-delay: -.375s;
    }

    .clockwise>div:nth-child(6) {
        top: 81.8198046966%;
        left: 18.1801949248%;

        animation-delay: -.25s;
    }

    .clockwise>div:nth-child(7) {
        top: 49.9999750815%;
        left: 5.0000051215%;

        animation-delay: -.125s;
    }

    .clockwise>div:nth-child(8) {
        top: 18.179464974%;
        left: 18.1803700518%;

        animation-delay: 0s;
    }


    @keyframes ball-spin-clockwise {

        0%,
        100% {
            opacity: 1;

            transform: scale(1);
        }

        20% {
            opacity: 1;
            border: 3px solid black;
        }

        80% {
            opacity: 0;
            border: 3px solid green;

            transform: scale(0);
        }
        100% {
            border: 3px solid red;
        }
    }
</style>

 

标签:loading,top,nth,child,div,clockwise,left
From: https://www.cnblogs.com/dming4/p/17563789.html

相关文章

  • RestKit学习5:Loading Remote Objects
    本系列的前面几篇:RestKit学习1:引用RestKit项目RestKit学习2:使用RestKit发送和接受请求 RestKit学习3:CoreData从模型到实体RestKit学习4:DatabaseSeeding(生成数据库文件)这篇是从服务器的一个json接口直接获得数据,并把数据解析成对象。需要解析的json字符串:{"error":0,"message":"......
  • ImageMagick:报错:error while loading shared libraries: libjpeg.so.9(ImageMagick 7
    一,报错的例子:1,报错信息[root@localhostwork]#identify-listformatidentify:errorwhileloadingsharedlibraries:libjpeg.so.9:cannotopensharedobjectfile:Nosuchfileordirectory2,原因:imagemagick在调用jpeg的动态链接库时找不到相应的文件,所以报......
  • openssl: error while loading shared libraries: libssl.so.3: cannot open shared o
    这个错误表明在加载openssl时找不到共享库文件libssl.so.3。这可能是由于缺少该共享库或者库文件路径不正确导致的。要解决这个问题,您可以尝试以下几种方法:安装OpenSSL:确保您的系统上已经正确安装了OpenSSL。您可以使用操作系统的包管理器来安装OpenSSL,具体命令可能因您......
  • 图片懒加载 loading
    loading属性设置为lazy  到今天,除了IE系列浏览器,目前都支持通过loading属性实现延迟加载。此属性可以添加到<img>元素中,也可以添加到<iframe>元素中。属性的值为loading=lazy会告诉浏览器,如果图像位于可视区时,则立即加载图像,并在用户滚动到它们附近时获取其......
  • ionic LoadingController 使用cssClass改变加载样式
    以改变加载框的图表颜色和字体颜色为例在主题文件variables.scss中设置LoadingController需要改变的样式class以下使用主题颜色为加载框的图表颜色和字体颜色(当主题更改时随之改变)//加载框全局样式ion-loading.custom-loading{.loading-wrapper{--spinner-......
  • LoadingCache
    LoadingCache参数含义:1、maximumSize:设定缓存项的数目的最大值,当数目空间不足时,会使用LRU策略进行回收2、expireAfterxxx:过期逐出,例如expireAfterWrite设置为10分钟,则写入十分钟后过期4、refreshAfterWrite:例如设置为10分钟,则10分钟内没有写操作,则刷新。在到达过期时间后,对cache进......
  • 离线安装mysql报错解决方法:/usr/sbin/mysqld: error while loading shared libraries:
    Linux:centos7.664位mysql:5.6使用离线方式安装:rpm-ivh--nodepsmysql*,执行systemctlstartmysqld.service发现启动不了,通过vi/var/log/mysql.log看到如下关键字:libraries:libaio.so.1,之前也是按照网上帖子各种修改都没有解决问题,详细报错如下:/usr/sbin/mysqld:error......
  • 前端Vue自定义加载中loading加载结束end组件 可用于分页展示 页面加载请求
    前端Vue自定义加载中loading加载结束end组件可用于分页展示页面加载请求,请访问uni-app插件市场地址:https://ext.dcloud.net.cn/plugin?id=13219效果图如下:实现代码如下:cc-paging使用方法<!--加载中用法isLoading:是否加载isEnd:是否结束加载--><cc-paging:isLoad......
  • 前端Vue加载中页面动画弹跳动画loading
    前端Vue加载中页面动画弹跳动画loading,下载完整代码请访问uni-app插件市场址:https://ext.dcloud.net.cn/plugin?id=13091效果图如下:使用方法<!--ref:唯一ref top:距离中间顶部距离--><cc-loadingref="mixLoad":top="0"></cc-loading>//隐藏动画this.$refs.mix......
  • quasar里Loading plugin造成scrollBehavior的行为不正确
    发现线上的项目页面scrollBehavior表现不正常。从Index点击route到detail页面,再后退,回到的位置是detail页面的scrollposition,而不是route前index页面的scrollposition。后来到以前的分支查看,发现是在ssr改造后出现的问题。一开始以为是quasar.conf.js的preFetch:true开关的问......