css布局实现搅拌loading加载动画效果代码

代码语言:html

所属分类:加载滚动

代码描述:css布局实现搅拌loading加载动画效果代码

代码标签: 搅拌 loading 加载 动画 效果

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


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

<head>

  <meta charset="UTF-8">

  
  
<style>
@import url("https://fonts.googleapis.com/css2?family=PT+Sans+Narrow&display=swap");
html {
  font-family: "PT Sans Narrow", Ariel, sans-serif;
  font-weight: 300;
  font-size: 16px;
  box-sizing: border-box;
}
html *,
html *::before,
html *::after {
  font-family: inherit;
  font-weight: inherit;
  box-sizing: inherit;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  body {
    flex-direction: row;
  }
}

section {
  display: flex;
  flex-direction: column;
  flex: 1 0 50%;
}
section:first-child {
  background: #1e1e26;
}

.app-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  width: 100%;
  height: 100%;
  padding: 3rem 1rem;
}
.app-loader.light {
  color: #1e1e26;
}
.app-loader.light .app-loader__wisk-handle {
  background: #fff;
}
.app-loader.light .app-loader__bowl {
  background: #fff;
}
.app-loader__text {
  display: flex;
  justify-content: center;
  text-transform: uppercase;
  margin: 0 0 4rem;
  width: 100%;
}
.app-loader__text {
  font-size: 1.25rem;
}
@media screen and (min-width: 20rem) {
  .app-loader__text {
    font-size: calc( 				1.25rem + 1.25 * 					((100vw - 20rem) / 62) 			);
  }
}
@media screen and (min-width: 82rem) {
  .app-loader__text {
    font-size: 2.5rem;
  }
}
.app-loader__text span {
  flex: 0 0 auto;
  position: relative;
  -webkit-animation: flip 10s ease-in infinite;
          animation: flip 10s ease-in infinite;
  perspective: 1000px;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
}
.app-loader__text span:nth-of-type(1) {
  -webkit-animation-delay: 0ms;
          animation-delay: 0ms;
  z-index: 1;
}
.app-loader__text span:nth-of-type(2) {
  -webkit-animation-delay: 100ms;
          animation-delay: 100ms;
  z-index: 2;
}
.app-loader__text span:nth-of-type(3) {
  -webkit-animation-delay: 200ms;
          animation-delay: 200ms;
  z-index: 3;
}
.app-loader__text span:nth-of-type(4) {
  -webkit-animation-delay: 300ms;
          animation-delay: 300ms;
  z-index: 4;
}
.app-loader__text span:nth-of-type(5) {
  -webkit-animation-delay: 400ms;
          animation-delay: 400ms;
  z-index: 5;
}
.app-loader__text span:nth-of-type(6) {
  -webkit-animation-delay: 500ms;
          animation-delay: 500ms;
  z-index: 6;
}
.app-loader__text span:nth-of-type(7) {
  -webkit-animation-delay: 600ms;
          animation-delay: 600ms;
  z-index: 7;
}
.app-loader__text span:nth-of-type(8) {
  -webkit-animation-delay: 7.........完整代码请登录后点击上方下载按钮下载查看

网友评论0