html5加载动画效果

admin4年前html5644
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>


相关文章

各语种对应编码

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

html5 base64上传图片 生成缩略图

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

ico标签代码

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

图片响应式

<picture>              &...

html5+css 多国语言选择下拉

<style>              #otherLans{       ...

各大主机商主机控制面板网址

万网 https://cp.hichina.com/login西部数码 https://www.myhostadmin.net/...

发表评论    

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