脚本宝典收集整理的这篇文章主要介绍了

5组炫酷的纯CSS3 Loading加载动画DEMO演示

脚本宝典小编觉得挺不错的,现在分享给大家,也给大家做个参考,希望能帮助你少写一行代码,多一份安全和惬意。

5组炫酷的纯CSS3 Loading加载动画DEMO演示

5组炫酷的纯CSS3 Loading加载动画DEMO演示-脚本宝典

css样式

body {
  background-color: #e0e0eb;
}

.box {
  position: relative;
  height: auto;
  width: 80%;
  margin: auto;
  margin-top: 50px;
  background: white;
  text-align: center;
  box-shadow: 3px 3px 30px black;
}

h1 {
  padding-top: 20px;
  font-family: "Do Hyeon", sans-serif;
}

.spinner {
  border-radius: 50%;
  margin: 20px;
  display: inline-block;
  position: relative;
  height: 60px;
  width: 60px;
  background-color: #e0e0eb;
}

.spinnerOne::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  top: -5px;
  left: -5px;
  height: 60px;
  width: 60px;
  border: 5px solid transparent;
  border-top-color: #7389AE;
  animation: spinneroneani 0.5s linear infinite;
}

@keyframes spinneroneani {
  25% {
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: #05A8AA;
  }
  50% {
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: #416788;
    border-left-color: transparent;
    transform: rotate(180deg) scale(1.2);
  }
  75% {
    border-top-color: transparent;
    border-right-color: #2F6690;
    border-bottom-color: transparent;
    border-left-color: transparent;
  }
  100% {
    border-top-color: #7389AE;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
    transform: rotate(360deg) scale(1);
  }
}
.spinnerTwo:before {
  position: absolute;
  top: 30px;
  left: 27.5px;
  content: "";
  height: 35px;
  width: 5px;
  background-color: #535657;
  transform-origin: 50% 0%;
  border-radius: 8px;
  animation: clockmin 2s linear infinite;
}
.spinnerTwo:after {
  position: absolute;
  content: "";
  height: 35px;
  width: 2px;
  top: 30px;
  left: 29px;
  transform-origin: 50% 0%;
  background-color: #D1462F;
  border-radius: 2px;
  animation: clocksec 0.5s linear infinite;
}
.spinnerTwo span {
  position: absolute;
  top: 10px;
  left: 27.5px;
  height: 20px;
  width: 5px;
  border-radius: 2px;
  background: #535657;
  transform-origin: 50% 100%;
  animation: clockhour 10s linear infinite;
}

@keyframes clockhour {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes clockmin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes clocksec {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.spinnerThree {
  background-color: white;
  border: 3px solid #e0e0eb;
}

.spinnerThree span {
  height: 3px;
  width: 3px;
  border-radius: 50%;
  position: absolute;
  background: #7389AE;
}

.spinnerThree > span:nth-child(1) {
  top: 28px;
  left: 8px;
  animation: bounce 2s linear 0s infinite;
}

.spinnerThree > span:nth-child(2) {
  top: 28px;
  left: 14px;
  animation: bounce 2s linear 0.09s infinite;
}

.spinnerThree > span:nth-child(3) {
  top: 28px;
  left: 20px;
  animation: bounce 2s linear 0.18s infinite;
}

.spinnerThree > span:nth-child(4) {
  top: 28px;
  left: 26px;
  animation: bounce 2s linear 0.27s infinite;
}

.spinnerThree > span:nth-child(5) {
  top: 28px;
  left: 32px;
  animation: bounce 2s linear 0.36s infinite;
}

.spinnerThree > span:nth-child(6) {
  top: 28px;
  left: 38px;
  animation: bounce 2s linear 0.45s infinite;
}

.spinnerThree > span:nth-child(7) {
  top: 28px;
  left: 44px;
  animation: bounce 2s linear 0.54s infinite;
}

.spinnerThree > span:nth-child(8) {
  top: 28px;
  left: 50px;
  animation: bounce 2s linear 0.63s infinite;
}

@keyframes bounce {
  0%, 10%, 100% {
    top: 28px;
    transform: scale(1);
  }
  5% {
    top: 20px;
    transform: scale(2);
  }
}
.spinnerFour {
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.spinnerFour > span {
  height: 60px;
  width: 60px;
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
}

.spinnerFour > span:nth-child(1) {
  top: -2px;
  left: -11px;
  background: #b9dcfa;
  animation: grow 2s linear 0s infinite;
}

.spinnerFour > span:nth-child(2) {
  top: 15px;
  left: 6px;
  background: #4e9e22;
  animation: grow 2s linear 0.5s infinite;
}

.spinnerFour > span:nth-child(3) {
  top: -3px;
  left: -8px;
  background: #1df26c;
  animation: grow 2s linear 1s infinite;
}

.spinnerFour > span:nth-child(4) {
  top: -14px;
  left: -1px;
  background: #683e54;
  animation: grow 2s linear 1.5s infinite;
}

.spinnerFour > span:nth-child(5) {
  top: -3px;
  left: 14px;
  background: #daf610;
  animation: grow 2s linear 2s infinite;
}

.spinnerFour > span:nth-child(6) {
  top: -10px;
  left: 7px;
  background: #cd4902;
  animation: grow 2s linear 2.5s infinite;
}

.spinnerFour > span:nth-child(7) {
  top: 6px;
  left: 7px;
  background: #5d9a5d;
  animation: grow 2s linear 3s infinite;
}

.spinnerFour > span:nth-child(8) {
  top: 9px;
  left: -1px;
  background: #a7bbef;
  animation: grow 2s linear 3.5s infinite;
}

.spinnerFour > span:nth-child(9) {
  top: 3px;
  left: -2px;
  background: #962b6f;
  animation: grow 2s linear 4s infinite;
}

.spinnerFour > span:nth-child(10) {
  top: 2px;
  left: -3px;
  background: #f282be;
  animation: grow 2s linear 4.5s infinite;
}

.spinnerFour > span:nth-child(11) {
  top: 10px;
  left: 7px;
  background: #5dc0f0;
  animation: grow 2s linear 5s infinite;
}

.spinnerFour > span:nth-child(12) {
  top: 1px;
  left: -7px;
  background: #980217;
  animation: grow 2s linear 5.5s infinite;
}

@keyframes grow {
  0% {
    opacity: 1;
    transform: scale(0);
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}
.spinnerFive {
  overflow: hidden;
}

.spinnerFive > span:nth-child(1) {
  position: absolute;
  height: 25px;
  width: 60px;
  background: #7389AE;
  bottom: 0;
  left: 0;
}

.spinnerFive > span:nth-child(2) {
  position: absolute;
  height: 10px;
  width: 10px;
  opacity: 0;
  bottom: 8px;
  left: 33px;
  background: white;
  border-radius: 50%;
  border: 1px solid #7389AE;
  animation: floaty 2s linear 0.8s infinite;
}

.spinnerFive > span:nth-child(3) {
  position: absolute;
  height: 10px;
  width: 10px;
  opacity: 0;
  bottom: 8px;
  left: 22px;
  background: white;
  border-radius: 50%;
  border: 1px solid #7389AE;
  animation: floaty 2s linear 1.6s infinite;
}

.spinnerFive > span:nth-child(4) {
  position: absolute;
  height: 10px;
  width: 10px;
  opacity: 0;
  bottom: 10px;
  left: 33px;
  background: white;
  border-radius: 50%;
  border: 1px solid #7389AE;
  animation: floaty 2s linear 2.4s infinite;
}

.spinnerFive > span:nth-child(5) {
  position: absolute;
  height: 10px;
  width: 10px;
  opacity: 0;
  bottom: 1px;
  left: 32px;
  background: white;
  border-radius: 50%;
  border: 1px solid #7389AE;
  animation: floaty 2s linear 3.2s infinite;
}

.spinnerFive > span:nth-child(6) {
  position: absolute;
  height: 10px;
  width: 10px;
  opacity: 0;
  bottom: 3px;
  left: 36px;
  background: white;
  border-radius: 50%;
  border: 1px solid #7389AE;
  animation: floaty 2s linear 4s infinite;
}

.spinnerFive > span:nth-child(7) {
  position: absolute;
  height: 10px;
  width: 10px;
  opacity: 0;
  bottom: 9px;
  left: 37px;
  background: white;
  border-radius: 50%;
  border: 1px solid #7389AE;
  animation: floaty 2s linear 4.8s infinite;
}

.spinnerFive > span:nth-child(8) {
  position: absolute;
  height: 10px;
  width: 10px;
  opacity: 0;
  bottom: 8px;
  left: 27px;
  background: white;
  border-radius: 50%;
  border: 1px solid #7389AE;
  animation: floaty 2s linear 5.6s infinite;
}

.spinnerFive > span:nth-child(9) {
  position: absolute;
  height: 10px;
  width: 10px;
  opacity: 0;
  bottom: 3px;
  left: 22px;
  background: white;
  border-radius: 50%;
  border: 1px solid #7389AE;
  animation: floaty 2s linear 6.4s infinite;
}

.spinnerFive > span:nth-child(10) {
  position: absolute;
  height: 10px;
  width: 10px;
  opacity: 0;
  bottom: 2px;
  left: 32px;
  background: white;
  border-radius: 50%;
  border: 1px solid #7389AE;
  animation: floaty 2s linear 7.2s infinite;
}

.spinnerFive > span:nth-child(11) {
  position: absolute;
  height: 10px;
  width: 10px;
  opacity: 0;
  bottom: 6px;
  left: 25px;
  background: white;
  border-radius: 50%;
  border: 1px solid #7389AE;
  animation: floaty 2s linear 8s infinite;
}

.spinnerFive > span:nth-child(12) {
  position: absolute;
  height: 10px;
  width: 10px;
  opacity: 0;
  bottom: 6px;
  left: 35px;
  background: white;
  border-radius: 50%;
  border: 1px solid #7389AE;
  animation: floaty 2s linear 8.8s infinite;
}

@keyframes floaty {
  10% {
    opacity: 1;
  }
  25% {
    transform: translate(30%, 0%);
  }
  50% {
    transform: translate(-70%, 0%);
  }
  100% {
    bottom: 60px;
  }
}

html代码

  

Loaders

链接:https://pan.baidu.com/s/1P_TPQtVSr7M-FsytGnXUag
复制这段内容后打开百度网盘手机App,操作更方便哦


总结

以上是脚本宝典为你收集整理的

5组炫酷的纯CSS3 Loading加载动画DEMO演示

全部内容,希望文章能够帮你解决

5组炫酷的纯CSS3 Loading加载动画DEMO演示

所遇到的程序开发问题,欢迎加入QQ群277859234一起讨论学习。如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典网站推荐给程序员好友。 本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。

80%的人都看过