react实现后台管理页面骨架布局加载效果代码

代码语言:html

所属分类:布局界面

代码描述:react实现后台管理页面骨架布局加载效果代码

代码标签: 管理 页面 骨架 布局 加载 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/normalize.css">

  <meta name="viewport" content="width=device-width, initial-scale=1">

  
  
<style>
body {
  font-size: 16px;
}

.example-icon {
  background-color: var(--color);
  width: var(--size);
  height: var(--size);
  display: inline-block;
  border-radius: 50%;
}

.example-skeleton {
  --size: 1rem;
  background-color: var(--color);
  width: calc(var(--size) * var(--chars));
  height: calc(var(--size) * var(--lines));
  margin-bottom: 0.75rem;
  display: inline-block;
  overflow: hidden;
  position: relative;
  animation: animate-skeleton 2048ms ease-in-out infinite;
}
.example-skeleton:last-child {
  margin-bottom: 0;
}
.example-skeleton:after {
  content: "";
  width: 0;
  height: 100%;
  display: inline-block;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 0 2rem 0.75rem #ffffff;
  transform: skewX(-10deg);
  animation: animate-skeleton-shine 2048ms ease-in-out infinite;
}

@keyframes animate-skeleton {
  50% {
    filter: brightness(105%);
  }
}
@keyframes animate-skeleton-shine {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 1;
  }
}
.example-offcanvas-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow: hidden;
}

.example-offcanvas-screen {
  width: calc(100vw - 3rem);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 0.7rem 0.4rem rgba(0, 0, 0, 0.3);
}

.example-top-bar {
  background-color: #418eec;
  width: 100%;
  height: 3rem;
  display: flex;
  f.........完整代码请登录后点击上方下载按钮下载查看

网友评论0