C3----几个常用的加载图标制作

1.

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
          html {
            background: linear-gradient(to bottom, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.15) 100%), radial-gradient(at top center, rgba(255,255,255,0.40) 0%, rgba(0,0,0,0.40) 120%) #989898;
 background-blend-mode: multiply,multiply;
            height: 100%;
        }
        .spinner {
            margin: 100px auto;
            width: 100px;
            height: 100px;
            position: relative;
        }

        .container1>div,
        .container2>div,
        .container3>div {
            width: 20px;
            height: 20px;
            background-color: #333;
            border-radius: 100%;
            position: absolute;
            /* -webkit-animation: bouncedelay 1.2s infinite ease-in-out; */
            /* animation: bouncedelay 1.2s infinite ease-in-out; */
            /* -webkit-animation-fill-mode: both;
            animation-fill-mode: both; */
        }

        .spinner .spinner-container {
            position: absolute;
            width: 100%;
            height: 100%;
        }

        .container2 {
            -webkit-transform: rotateZ(45deg);
            transform: rotateZ(45deg);
        }

        .container3 {
            -webkit-transform: rotateZ(90deg);
            transform: rotateZ(90deg);
        }

        .circle1 {
            top: 0;
            left: 0;
        }

        .circle2 {
            top: 0;
            right: 0;
        }

        .circle3 {
            right: 0;
            bottom: 0;
        }

        .circle4 {
            left: 0;
            bottom: 0;
        }

        .container2 .circle1 {
            -webkit-animation-delay: -1.1s;
            animation-delay: -1.1s;
        }

        .container3 .circle1 {
            -webkit-animation-delay: -1.0s;
            animation-delay: -1.0s;
        }

        .container1 .circle2 {
            -webkit-animation-delay: -0.9s;
            animation-delay: -0.9s;
        }

        .container2 .circle2 {
            -webkit-animation-delay: -0.8s;
            animation-delay: -0.8s;
        }

        .container3 .circle2 {
            -webkit-animation-delay: -0.7s;
            animation-delay: -0.7s;
        }

        .container1 .circle3 {
            -webkit-animation-delay: -0.6s;
            animation-delay: -0.6s;
        }

        .container2 .circle3 {
            -webkit-animation-delay: -0.5s;
            animation-delay: -0.5s;
        }

        .container3 .circle3 {
            -webkit-animation-delay: -0.4s;
            animation-delay: -0.4s;
        }

        .container1 .circle4 {
            -webkit-animation-delay: -0.3s;
            animation-delay: -0.3s;
        }

        .container2 .circle4 {
            -webkit-animation-delay: -0.2s;
            animation-delay: -0.2s;
        }

        .container3 .circle4 {
            -webkit-animation-delay: -0.1s;
            animation-delay: -0.1s;
        }

        @-webkit-keyframes bouncedelay {

            0%,
            80%,
            100% {
                -webkit-transform: scale(0.0)
            }

            40% {
                -webkit-transform: scale(1.0)
            }
        }

        @keyframes bouncedelay {

            0%,
            80%,
            100% {
                transform: scale(0.0);
                -webkit-transform: scale(0.0);
            }

            40% {
                transform: scale(1.0);
                -webkit-transform: scale(1.0);
            }
        }
    </style>
</head>

<body>
    <div class="spinner">
        <div class="spinner-container container1">
            <div class="circle1"></div>
            <div class="circle2"></div>
            <div class="circle3"></div>
            <div class="circle4"></div>
        </div>
        <div class="spinner-container container2">
            <div class="circle1"></div>
            <div class="circle2"></div>
            <div class="circle3"></div>
            <div class="circle4"></div>
        </div>
        <div class="spinner-container container3">
            <div class="circle1"></div>
            <div class="circle2"></div>
            <div class="circle3"></div>
            <div class="circle4"></div>
        </div>
    </div>
</body>

</html>

  2.

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0
        }

        body,
        html {
            background-image: linear-gradient(to top, #fdcbf1 0%, #fdcbf1 1%, #e6dee9 100%);
            height: 100%;
        }

        .baby {
            width: 100px;
            height: 100px;

            position: relative;
            border-radius: 50%;
            margin: 50px auto;
        }

        .b1, .b2{
            background-image: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
            width: 100%;
            height: 100%;
            border-radius: 50%;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            margin: auto;
            animation: move 2s  infinite ease-in-out;
            opacity: .4;
        }

         .baby .b2{
            animation-delay: -1s;

        }
        @keyframes move {

            0%,
            100% {
                transform: scale(0.0);

            }

            50% {
                transform: scale(1.0);

            }
        }
    </style>
</head>

<body>
    <div class="baby">
        <div class="b1">

        </div>
        <div class="b2">

        </div>
    </div>
</body>

</html>

3.

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        div {
            margin: 20px auto;
            height: 100px;
            width: 100px;
        }

        span {
            display: inline-block;
            width: 5px;
            height: 50px;
            background-color: blue;
            transition: all 2s;
            background-origin: center center;
            animation: move 1.2s infinite ease-in-out;
            /* animation: move 5s 0s linear infinite; */
        }

        span:nth-child(1) {
            animation-delay: -1.4s
        }

        span:nth-child(2) {
            animation-delay: -1.0s;
        }

        span:nth-child(3) {
            animation-delay: -0.9s;
        }

        span:nth-child(4) {
            animation-delay: -0.8s;
        }

        span:nth-child(5) {
            animation-delay: -0.6s;
        }

        @keyframes move {

            0%,
            40%,
            100% {
                transform: scaleY(0.4);
                -webkit-transform: scaleY(0.4);
            }

            20% {
                transform: scaleY(1.0);
                -webkit-transform: scaleY(1.0);
            }
        }
    </style>
</head>

<body>
    <div>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
    </div>
    <div>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
    </div>
    <div>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
    </div>
    <div>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
    </div>
    <div>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
    </div>
</body>

</html>

  

4.

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0px;
        }

        body,
        html {
            background: #000
        }

        div {
            margin: 50px auto;
            width: 70px;
            height: 70px;
            background: gold;
            animation: move 1.2s 0s infinite ease-in-out;
            transform-style: preserve-3d;
            /* border-radius: 50% */
        }

        @keyframes move {
            0% {
                transform: perspective(120px) rotateX(0deg) rotateY(0deg);

            }

            50% {
                transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);

            }

            100% {
                transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);

            }

        }
    </style>
</head>

<body>
    <div>

    </div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
</body>

</html>

  

原文地址:https://www.cnblogs.com/moonzwt/p/9709938.html

时间: 2024-11-05 16:28:21

C3----几个常用的加载图标制作的相关文章

CSS3动画实现loading加载图标

CSS3动画实现loading加载图标,并利用JavaScript封装成插件,方便以后调用. index.html <!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="utf-8"> <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scal

MFC 加载图标 设置窗口标题

加载图标 ◎ 1.m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); ◎ 2.m_hIcon = ::LoadIcon(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDR_MAINFRAME)); SetIcon(m_hIcon, TRUE); // 设置大图标 SetIcon(m_hIcon, FALSE); // 设置小图标 3 设置窗口标题 SetWindowText(L"我的第一个MFC程序"

微信企业号两种常用搜索加载方式

微信企业端两种常用搜索方式 一:在搜索框中进行加载搜索结果 1.html部分代码和js部分代码 <div class="page__bd" style="height: 100%;"> <div class="weui-search-bar" id="searchBar"> <form class="weui-search-bar__form"> <div clas

webpack配置常用loader加载器

webapck中使用loader的方法有三种 使用loader之前必须运行安装 : npm install --save-dev xxx-loader (1)通过CLI : 命令行中运行 webpack --module-bind jade  --module-bind 'css=style!css' //jade,style,css后面可省略-loader,他们分别对.jade使用jade-loader,对.css使用style-loader和css-loader (2)通过require :

常用图片加载框架

我们在项目中使用的是Picasso.其实现在的主流图片加载框架除了Picasso还有ImageLoader,Glide,以及Fresco.ImageLoader是比较老的框架了,稳定, 加载速度适中, 缺点在于不支持GIF图片加载, 使用稍微繁琐, 并且缓存机制没有和http的缓存很好的结合, 完全是自己的一套缓存机制.Glide是谷歌的一位工程师开发的,它可以说是Picasso的升级版, 有Picasso的优点, 并且支持GIF图片加载显示, 图片缓存也会自动缩放, 默认使用RGB_565格式

预加载动画,移动端常用的加载前的百分比动画

<script> function loading() { function Load() {} Load.prototype.loadImgs = function(urls, callback) { this.urls = urls; this.imgNumbers = urls.length; this.loadImgNumbers = 0; var that = this; for(var i = 0; i < urls.length; i++) { var obj = new

前端脱坑日记之加载特效制作1

相信大家在生活中已经对加载界面已经非常熟悉,一个优美的加载界面绝对让你好感度大增,不说废话了让我们来看看代码吧! <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <link rel="stylesheet" href="css/bootstr

CMFCRibbonStatusBarPane加载图标

Ribbon状态栏加入图标 HICON hIcon = (HICON) ::LoadImage(AfxGetResourceHandle(), MAKEINTRESOURCE(IDI_ICON1), IMAGE_ICON, 0, 0, LR_SHARED); m_wndStatusBar.AddElement(new CMFCRibbonStatusBarPane(ID_STATUSBAR_COM, _T(""), IDB_BITMAP_COM, 16, RGB(0, 0, 0), h

移动端常用的加载更多的分页公共函数

/***************************分页**************************/function changeSingerList(Btn,arr,func,term){ var temp=1; if(arr.length>0){ var pageNum=Math.ceil(arr.length/term); creatItem(); Btn.bind('click', function (e) { if(temp<pageNum){ temp++; crea