zoukankan      html  css  js  c++  java
  • css3制作的载入动画效果,效果很震撼!

     
    css3制作的载入动画效果,效果很震撼! 
    javascript特效
    演示地址:http://www.huiyi8.com/jiaoben/

     

    [代码] [JavaScript]代码

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>CSS3载入中动画</title>
    <style type="text/css">
    ul#progress {
        list-style:none;
        125px;
        margin:0 auto;
        padding-top:50px;
        padding-bottom:50px;
    }
    ul#progress li { /* Style your list */
        float:left;
        position:relative;
        15px;
        height:15px;
        border:1px solid #fff;
        border-radius:50px;
        margin-left:10px;
        border-left:1px solid #111; border-top:1px solid #111; border-right:1px solid #333; border-bottom:1px solid #333;
        background:#000;
    }
    ul#progress li:first-child { margin-left:0; } /* Remove the margin first li element */
    .ball { /* Style your ball and set the animation */
         border-top-right-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-left-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: rgb(0, 0, 0) !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; auto !important; box-sizing: content-box !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; min-height: inherit !important; color: grey !important; background: none !important;">#2187e7;
        background-image: -moz-linear-gradient(90deg, #2187e7 25%, #a0eaff);
        background-image: -webkit-linear-gradient(90deg, #2187e7 25%, #a0eaff);
        15px;
        height:15px;
        border-radius:50px;
        -moz-transform:scale(0);
        -webkit-transform:scale(0);
        -moz-animation:loading 1s linear forwards;
        -webkit-animation:loading 1s linear forwards;
    }
    .pulse { /* Style your second ball to create the amazing effects */
        15px;
        height:15px;
        border-radius:30px;
        border: 1px solid #00c6ff;
        box-shadow: 0 0 5px #00c6ff;
        position:absolute;
        top:-1px;
        left:-1px;
        -moz-transform:scale(0);
        -webkit-transform:scale(0);
        -webkit-animation:pulse 1s ease-out;
        -moz-animation:pulse 1s ease-out;
    }
    /* Control Layers */
    #layer1 { -moz-animation-delay:0.5s; -webkit-animation-delay:0.5s; }
    #layer2 { -moz-animation-delay:1s; -webkit-animation-delay:1s; }
    #layer3 { -moz-animation-delay:1.5s; -webkit-animation-delay:1.5s; }
    #layer4 { -moz-animation-delay:2s; -webkit-animation-delay:2s; }
    #layer5 { -moz-animation-delay:2.5s; -webkit-animation-delay:2.5s; }
    #layer7 { -moz-animation-delay:1.5s; -webkit-animation-delay:1.5s; }
    #layer8 { -moz-animation-delay:2s; -webkit-animation-delay:2s; }
    #layer9 { -moz-animation-delay:2.5s; -webkit-animation-delay:2.5s; }
    #layer10 { -moz-animation-delay:3s; -webkit-animation-delay:3s; }
    #layer11 { -moz-animation-delay:3.5s; -webkit-animation-delay:3.5s; }
    @-moz-keyframes loading {
        0%{-moz-transform:scale(0,0);}
        100%{-moz-transform:scale(1,1);}
    }
    @-webkit-keyframes loading {
        0%{-webkit-transform:scale(0,0);}
        100%{-webkit-transform:scale(1,1);}
    }
    @-moz-keyframes pulse {
        0%   {-moz-transform: scale(0);opacity: 0;}
        10%  {-moz-transform: scale(1);opacity: 0.5;}
        50%  {-moz-transform: scale(1.75);opacity: 0;}
        100% {-moz-transform: scale(0);opacity: 0;}
    }
    @-webkit-keyframes pulse {
        0%   {-webkit-transform: scale(0);opacity: 0;}
        10%  {-webkit-transform: scale(1);opacity: 0.5;}
        50%  {-webkit-transform: scale(1.75);opacity: 0;}
        100% {-webkit-transform: scale(0);opacity: 0;}
    }
    body{ background:#333;}
    /***************************************************************/
    #content {
        100%; /* Full Width */
        height:5px;
        margin:50px auto;
        background:#000;
    }
    .expand {
        100%;
        height:1px;
        margin:2px 0;
        background:#2187e7;
        position:absolute;
        box-shadow:0px 0px 10px 1px rgba(0,198,255,0.7);
            -moz-animation:fullexpand 10s ease-out;
        -webkit-animation:fullexpand 10s ease-out;
    }
    /* Full Width Animation Bar */
    @-moz-keyframes fullexpand {
        0%  { 0px;}
        100%{ 100%;}
    }
    @-webkit-keyframes fullexpand {
        0%  { 0px;}
        100%{ 100%;}
    }
    /***********************************************************************/
    ul#loadbar {
        list-style:none;
        140px;
        margin:0 auto;
        padding-top:50px;
        padding-bottom:75px;
    }
    ul#loadbar li {
        float:left;
        position:relative;
        11px;
        height:26px;
        margin-left:1px;
        border-left:1px solid #111; border-top:1px solid #111; border-right:1px solid #333; border-bottom:1px solid #333;
        background:#000;
    }
    ul#loadbar li:first-child { margin-left:0; }
    .bar {
         border-top-right-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-left-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: rgb(0, 0, 0) !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; auto !important; box-sizing: content-box !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-size: 1em !important; min-height: inherit !important; color: grey !important; background: none !important;">#2187e7;
        background-image: -moz-linear-gradient(45deg, #2187e7 25%, #a0eaff);
        background-image: -webkit-linear-gradient(45deg, #2187e7 25%, #a0eaff);
        11px;
        height:26px;
        opacity:0;
        -webkit-animation:fill .5s linear forwards;
        -moz-animation:fill .5s linear forwards;
    }
    #layerFill1 { -moz-animation-delay:0.5s; -webkit-animation-delay:0.5s; }
    #layerFill2 { -moz-animation-delay:1s; -webkit-animation-delay:1s; }
    #layerFill3 { -moz-animation-delay:1.5s; -webkit-animation-delay:1.5s; }
    #layerFill4 { -moz-animation-delay:2s; -webkit-animation-delay:2s; }
    #layerFill5 { -moz-animation-delay:2.5s; -webkit-animation-delay:2.5s; }
    #layerFill6 { -moz-animation-delay:3s; -webkit-animation-delay:3s; }
    #layerFill7 { -moz-animation-delay:3.5s; -webkit-animation-delay:3.5s; }
    #layerFill8 { -moz-animation-delay:4s; -webkit-animation-delay:4s; }
    #layerFill9 { -moz-animation-delay:4.5s; -webkit-animation-delay:4.5s; }
    #layerFill10 { -moz-animation-delay:5s; -webkit-animation-delay:5s; }
    @-moz-keyframes fill {
        0%{ opacity:0; }
        100%{ opacity:1; }
    }
    @-webkit-keyframes fill {
        0%{ opacity:0; }
        100%{ opacity:1; }
    }
    </style>
    </head>
    <body>
    <ul id="progress">
      <li>
        <div id="layer1" class="ball"></div>
        <!-- layer1 control delay animation By:www.iiwnet.com / ball is effect -->
        <div id="layer7" class="pulse"></div>
        <!-- layer7 control delay animation / pulse is effect  -->
      </li>
      <li>
        <div id="layer2" class="ball"></div>
        <div id="layer8" class="pulse"></div>
      </li>
      <li>
        <div id="layer3" class="ball"></div>
        <div id="layer9" class="pulse"></div>
      </li>
      <li>
        <div id="layer4" class="ball"></div>
        <div id="layer10" class="pulse"></div>
      </li>
      <li>
        <div id="layer5" class="ball"></div>
        <div id="layer11" class="pulse"></div>
      </li>
    </ul>
    <div id="content">
    <span class="expand"></span>
    </div>
    <p>更多>><a href='http://www.iiwnet.com' >JS特效</a> </p>
    <ul id="loadbar">
        <li>
        <div id="layerFill1" class="bar"></div> <!-- Control Layer + Bar  -->
        </li>
        <li>
        <div id="layerFill2" class="bar"></div>
        </li>
        <li>
        <div id="layerFill3" class="bar"></div>
        </li>
        <li>
        <div id="layerFill4" class="bar"></div>
        </li>
        <li>
        <div id="layerFill5" class="bar"></div>
        </li>
        <li>
        <div id="layerFill6" class="bar"></div>
        </li>
        <li>
        <div id="layerFill7" class="bar"></div>
        </li>
        <li>
        <div id="layerFill8" class="bar"></div>
        </li>
        <li>
        <div id="layerFill9" class="bar"></div>
        </li>
        <li>
        <div id="layerFill10" class="bar"></div>
        </li>
    </ul>
    </body>
    </html>
  • 相关阅读:
    Android textAppearance的属性设置及TextView属性详解
    Eclipse Hot Keys
    面向对象(一)
    Java基础知识(下)
    code2uml使用教程
    AndroidDevTools简介
    idea2020.3 安装插件JetBrains 插件市场安装 Cloud Toolkit
    在 Mac 上撰写和格式化备忘录-添加提醒-添加日历
    macbook-键盘连击问题002
    创业团队建设与管理
  • 原文地址:https://www.cnblogs.com/lhrs/p/4119014.html
Copyright © 2011-2022 走看看