手机端H5加载中效果demo(整理)

简介: 手机端H5加载中效果demo(整理)

<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>手机端H5加载中</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      /* --------- */
      @keyframes van-rotate {
        0% {
          -webkit-transform: rotate(0);
          transform: rotate(0)
        }
        to {
          -webkit-transform: rotate(1turn);
          transform: rotate(1turn)
        }
      }
      .vanLoading,
      .loadingSpan {
        position: relative;
        vertical-align: middle
      }
      .loadingSpan {
        display: inline-block;
        width: .8rem;
        max-width: 100%;
        height: .8rem;
        max-height: 100%;
        -webkit-animation: van-rotate .8s linear infinite;
        animation: van-rotate .8s linear infinite
      }
      .iBox {
        -webkit-animation-timing-function: steps(12);
        animation-timing-function: steps(12)
      }
      .iBox i {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%
      }
      .iBox i:before {
        display: block;
        width: .053333rem;
        height: 25%;
        margin: 0 auto;
        background-color: currentColor;
        border-radius: 40%;
        content: " "
      }
      @-webkit-keyframes van-circular {
        0% {
          stroke-dasharray: 1, 200;
          stroke-dashoffset: 0
        }
        50% {
          stroke-dasharray: 90, 150;
          stroke-dashoffset: -40
        }
        to {
          stroke-dasharray: 90, 150;
          stroke-dashoffset: -120
        }
      }
      @keyframes van-circular {
        0% {
          stroke-dasharray: 1, 200;
          stroke-dashoffset: 0
        }
        50% {
          stroke-dasharray: 90, 150;
          stroke-dashoffset: -40
        }
        to {
          stroke-dasharray: 90, 150;
          stroke-dashoffset: -120
        }
      }
      .iBox i:first-of-type {
        -webkit-transform: rotate(30deg);
        transform: rotate(30deg);
        opacity: 1
      }
      .iBox i:nth-of-type(2) {
        -webkit-transform: rotate(60deg);
        transform: rotate(60deg);
        opacity: .9375
      }
      .iBox i:nth-of-type(3) {
        -webkit-transform: rotate(90deg);
        transform: rotate(90deg);
        opacity: .875
      }
      .iBox i:nth-of-type(4) {
        -webkit-transform: rotate(120deg);
        transform: rotate(120deg);
        opacity: .8125
      }
      .iBox i:nth-of-type(5) {
        -webkit-transform: rotate(150deg);
        transform: rotate(150deg);
        opacity: .75
      }
      .iBox i:nth-of-type(6) {
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
        opacity: .6875
      }
      .iBox i:nth-of-type(7) {
        -webkit-transform: rotate(210deg);
        transform: rotate(210deg);
        opacity: .625
      }
      .iBox i:nth-of-type(8) {
        -webkit-transform: rotate(240deg);
        transform: rotate(240deg);
        opacity: .5625
      }
      .iBox i:nth-of-type(9) {
        -webkit-transform: rotate(270deg);
        transform: rotate(270deg);
        opacity: .5
      }
      .iBox i:nth-of-type(10) {
        -webkit-transform: rotate(300deg);
        transform: rotate(300deg);
        opacity: .4375
      }
      .iBox i:nth-of-type(11) {
        -webkit-transform: rotate(330deg);
        transform: rotate(330deg);
        opacity: .375
      }
      .iBox i:nth-of-type(12) {
        -webkit-transform: rotate(1turn);
        transform: rotate(1turn);
        opacity: .3125
      }
      .vanToast {
        position: fixed;
        top: 50%;
        left: 50%;
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        box-sizing: content-box;
        width: 2.346667rem;
        max-width: 70%;
        min-height: 2.346667rem;
        padding: .426667rem;
        color: #fff;
        font-size: .373333rem;
        line-height: .533333rem;
        white-space: pre-wrap;
        text-align: center;
        word-break: break-all;
        background-color: rgba(0, 0, 0, .7);
        border-radius: .213333rem;
        -webkit-transform: translate3d(-50%, -50%, 0);
        transform: translate3d(-50%, -50%, 0)
      }
    </style>
    <script>
      var kk = document.documentElement.clientWidth;
      if (kk > 750) {
        kk = 750
      }
      document.documentElement.style.fontSize = kk / 7.5 + "px"
    </script>
  </head>
  <body>
    <div class="vanToast" style="z-index: 2001;">
      <div class="vanLoading"><span
          class="loadingSpan iBox"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></span>
      </div>
      <div class="toastTxt">加载中...</div>
    </div>
  </body>
</html>
相关文章
|
5月前
|
移动开发 JavaScript
H5唤起手机打电话(拨号)和发短信功能
H5唤起手机打电话(拨号)和发短信功能
183 0
uniapp小程序单页面改变手机电量,头部通知的颜色效果demo(整理)
uniapp小程序单页面改变手机电量,头部通知的颜色效果demo(整理)
|
2月前
|
Web App开发 Android开发
FFmpeg开发笔记(四十六)利用SRT协议构建手机APP的直播Demo
实时数据传输在互联网中至关重要,不仅支持即时通讯如QQ、微信的文字与图片传输,还包括音视频通信。一对一通信常采用WebRTC技术,如《Android Studio开发实战》中的App集成示例;而一对多的在线直播则需部署独立的流媒体服务器,使用如SRT等协议。SRT因其优越的直播质量正逐渐成为主流。本文档概述了SRT协议的使用,包括通过OBS Studio和SRT Streamer进行SRT直播推流的方法,并展示了推流与拉流的成功实例。更多细节参见《FFmpeg开发实战》一书。
42 1
FFmpeg开发笔记(四十六)利用SRT协议构建手机APP的直播Demo
|
3月前
|
存储 移动开发 Android开发
使用kotlin Jetpack Compose框架开发安卓app, webview中h5如何访问手机存储上传文件
在Kotlin和Jetpack Compose中,集成WebView以支持HTML5页面访问手机存储及上传音频文件涉及关键步骤:1) 添加`READ_EXTERNAL_STORAGE`和`WRITE_EXTERNAL_STORAGE`权限,考虑Android 11的分区存储;2) 配置WebView允许JavaScript和文件访问,启用`javaScriptEnabled`、`allowFileAccess`等设置;3) HTML5页面使用`<input type="file">`让用户选择文件,利用File API;
|
3月前
|
JavaScript
vue + element UI【实战】音乐播放器/语音条(内含音频的加载、控制,事件监听,信息获取,手机网页阴影的去除等技巧)
vue + element UI【实战】音乐播放器/语音条(内含音频的加载、控制,事件监听,信息获取,手机网页阴影的去除等技巧)
57 1
|
4月前
|
Web App开发 移动开发 编解码
FFmpeg开发笔记(三十二)利用RTMP协议构建电脑与手机的直播Demo
本文讨论了实时数据传输在互联网中的重要性,如即时通讯和在线直播。一对一通信通常使用WebRTC技术,但一对多直播需要流媒体服务器和特定协议,如RTSP、RTMP、SRT或RIST。RTMP由于其稳定性和早期普及,成为国内直播的主流。文章通过实例演示了如何使用OBS Studio和RTMP Streamer进行RTMP推流,并对比了不同流媒体传输协议的优缺点。推荐了两本关于FFmpeg和Android开发的书籍以供深入学习。
59 0
FFmpeg开发笔记(三十二)利用RTMP协议构建电脑与手机的直播Demo
|
11月前
|
移动开发 小程序 Android开发
|
11月前
|
前端开发
前端切图:手机端自适应布局demo
前端切图:手机端自适应布局demo
32 0
|
11月前
手机端自适应布局demo
手机端自适应布局demo
37 0
uniapp手机号授权登录-现在只能通过手机号授权登录,后台来获取用户信息了效果demo(整理)
uniapp手机号授权登录-现在只能通过手机号授权登录,后台来获取用户信息了效果demo(整理)

热门文章

最新文章