<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## 三種實用loading特效 **實現原理:animation: animation-name(keyframe名稱) | animation-duration(持續時間) | animation-timing-function(速度曲線) | animation-delay(動畫延遲) | animation-iteration-count(播放次數) | animation-direction(是否反向播放動畫)** ### 效果一: ![](https://box.kancloud.cn/d73c3dc35891cf5b4d334b8d0364eb11_558x336.gif) > html代碼 ``` <div class="loader"> <div class="loading-1"> <i></i> </div> </div> ``` >css代碼 ``` .box .loader { width: 30%; float: left; height: 200px; margin-right: 3%; border: 1px solid #ccc; box-sizing: border-box; display: flex; align-items: center; justify-content: center; } .loading-1 { width: 35px; height: 35px; position: relative; } .loading-1 i { display: block; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(transparent 0%, transparent 60%, #333 40%, #333 100%); animation: loading-1 .6s linear 0s infinite; } @keyframes loading-1 { 0% {transform: rotate(0deg);} 50% {transform: rotate(180deg);} 100% {transform: rotate(360deg);} } ``` ### 效果二: ![](https://box.kancloud.cn/0f2ad02bb63d478cc3267467361554b9_558x336.gif) >html代碼 ``` <div class="loader"> <div class="loading-2"> <i></i> <i></i> <i></i> <i></i> <i></i> </div> </div> ``` >css代碼 ``` .loading-2 i { display: inline-block; width: 4px; height: 35px; border-radius: 2px; margin: 0 2px; background-color: #333; } .loading-2 i:nth-child(1){ animation: loading-2 .5s ease-in 0.1s infinite; } .loading-2 i:nth-child(2){ animation: loading-2 .5s ease-in 0.2s infinite; } .loading-2 i:nth-child(3){ animation: loading-2 .5s ease-in 0.3s infinite; } .loading-2 i:nth-child(4){ animation: loading-2 .5s ease-in 0.4s infinite; } .loading-2 i:nth-child(5){ animation: loading-2 .5s ease-in 0.5s infinite; } @keyframes loading-2 { 0% {transform: scaleY(1)} 50% {transform: scaleY(.4)} 100% {transform: scaleY(1)} } ``` ### 效果三: ![](https://box.kancloud.cn/86f4ecf02506d01fe985f746096bfc48_558x336.gif) >html代碼 ``` <div class="loader"> <div class="loading-3"> <i></i> <i></i> <i></i> <i></i> <i></i> <i></i> <i></i> <i></i> </div> </div> ``` >css代碼 ``` .loading-3 { position: relative; } .loading-3 i { display: block; width: 15px; height: 15px; border-radius: 50%; background-color: #333; position: absolute; } .loading-3 i:nth-child(1){ top: 25px; left: 0; animation: loading-3 1s ease 0s infinite; } .loading-3 i:nth-child(2){ top: 17px; left: 17px; animation: loading-3 1s ease -0.12s infinite; } .loading-3 i:nth-child(3){ top: 0; left: 25px; animation: loading-3 1s ease -0.24s infinite; } .loading-3 i:nth-child(4){ top: -17px; left: 17px; animation: loading-3 1s ease -0.36s infinite; } .loading-3 i:nth-child(5){ top: -25px; left: 0; animation: loading-3 1s ease -0.48s infinite; } .loading-3 i:nth-child(6){ top: -17px; left: -17px; animation: loading-3 1s ease -0.6s infinite; } .loading-3 i:nth-child(7){ top: 0; left: -25px; animation: loading-3 1s ease -0.72s infinite; } .loading-3 i:nth-child(8){ top: 17px; left: -17px; animation: loading-3 1s ease -0.84s infinite; } @keyframes loading-3 { 50% { transform: scale(0.4); opacity: 0.3;; } 100% { transform: scale(1); opacity: 1; } } ``` ---- 整個demo以上傳至[github](https://github.com/MrXuxu/H5_demo/tree/master/loading%E5%8A%A8%E7%94%BB)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看