html5加载动画效果

admin3年前html5528
section {
            width: 100%;
            height: 100vh;
            padding: 10px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid white;
            position: absolute;
            left: 0;
            top: 0;
            background-color: #000;
        }

span {
  width: 12px;
  height: 64px;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  background: currentColor;
  color: white;
  /* background-color: red; */
  animation: animloader61m 1s 1s linear infinite alternate;
}

span::before, span::after {
  content: '';
  width: 12px;
  height: 64px;
  border-radius: 4px;
  background: currentColor;
  position: absolute;
  bottom: 0;
  left: 20px;
  animation: animloader61 1s 1.5s linear infinite alternate;
}

span::after {
  left: -20px;
  animation-delay: 0s;
}

@keyframes animloader61 {
  0% {
    height: 64px;
  }
  100% {
    height: 5px;
  }
}

@keyframes animloader61m {
  0% {
    height: 64px;
    transform: translateY(0);
  }
  100% {
    height: 15px;
    transform: translateY(30px)
  }
}
<section class="loading" v-if="!loading"><span></span></section>


相关文章

ico标签代码

<link rel="shortcut icon" href="/favicon.ico" />...

各语种对应编码

https://www.jc2182.com/html/html-yydmck.html...

html5 base64上传图片 生成缩略图

use think\Image;//获取图片的缩略图function getThumb($url, $width = 257, $height = 0) {    if(empty...

iphone打开视频禁用全屏iPhone视频禁全屏

HTML里video必须加上webkit-playsinline属性<video id="player" width="480" height="...

谷歌整站翻译链接

https://translate.google.com/translate?sl=auto&tl=zh-CN&u=www.metapes.com...

谷歌翻译语言简称和全称

中文 zh-CN 中文英文en English西班牙文 es Español俄语 ru Русский法语 fr Français德语 de Deutsch丹麦语 da dansk ...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。