loading.io 常用首页加载动画效果

由于loading。io一直处于被墙的状态。很多时候想下点新颖的loading动画效果很蛋疼~~~
1、齿轮效果
在这里插入图片描述

<div class="loadingio-spinner-gear-tg8ur5odjyg"><div class="ldio-kjzjekb5viq">
<div><div></div><div></div><div></div><div></div><div></div><div></div></div>
</div></div>
<style type="text/css">
@keyframes ldio-kjzjekb5viq {
    0% { transform: rotate(0deg) }
   50% { transform: rotate(22.5deg) }
  100% { transform: rotate(45deg) }
}
.ldio-kjzjekb5viq > div {
  transform-origin: 100px 100px;
  animation: ldio-kjzjekb5viq 0.2s infinite linear;
}
.ldio-kjzjekb5viq > div div {
    position: absolute;
    width: 22px;
    height: 152px;
    background: #e15b64;
    left: 100px;
    top: 100px;
    transform: translate(-50%,-50%);
}
.ldio-kjzjekb5viq > div div:nth-child(1) {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}
.ldio-kjzjekb5viq > div div:nth-child(6) {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 50%;
}.ldio-kjzjekb5viq > div div:nth-child(3) {
  transform: translate(-50%,-50%) rotate(45deg)
}.ldio-kjzjekb5viq > div div:nth-child(4) {
  transform: translate(-50%,-50%) rotate(90deg)
}.ldio-kjzjekb5viq > div div:nth-child(5) {
  transform: translate(-50%,-50%) rotate(135deg)
}
.loadingio-spinner-gear-tg8ur5odjyg {
  width: 200px;
  height: 200px;
  display: inline-block;
  overflow: hidden;
  background: #ffffff;
}
.ldio-kjzjekb5viq {
  width: 100%;
  height: 100%;
  position: relative;
  transform: translateZ(0) scale(1);
  backface-visibility: hidden;
  transform-origin: 0 0; /* see note above */
}
.ldio-kjzjekb5viq div { box-sizing: content-box; }
/* generated by https://loading.io/ */
</style>

2、吃豆子效果

在这里插入图片描述

<div class="loadingio-spinner-bean-eater-rm5suixy6y9"><div class="ldio-q8hq1x9a6hj">
<div><div></div><div></div><div></div></div><div><div></div><div></div><div></div></div>
</div></div>
<style type="text/css">
@keyframes ldio-q8hq1x9a6hj-1 {
    0% { transform: rotate(0deg) }
   50% { transform: rotate(-45deg) }
  100% { transform: rotate(0deg) }
}
@keyframes ldio-q8hq1x9a6hj-2 {
    0% { transform: rotate(180deg) }
   50% { transform: rotate(225deg) }
  100% { transform: rotate(180deg) }
}
.ldio-q8hq1x9a6hj > div:nth-child(2) {
  transform: translate(-15px,0);
}
.ldio-q8hq1x9a6hj > div:nth-child(2) div {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 120px;
  height: 60px;
  border-radius: 120px 120px 0 0;
  background: #f8b26a;
  animation: ldio-q8hq1x9a6hj-1 1s linear infinite;
  transform-origin: 60px 60px
}
.ldio-q8hq1x9a6hj > div:nth-child(2) div:nth-child(2) {
  animation: ldio-q8hq1x9a6hj-2 1s linear infinite
}
.ldio-q8hq1x9a6hj > div:nth-child(2) div:nth-child(3) {
  transform: rotate(-90deg);
  animation: none;
}@keyframes ldio-q8hq1x9a6hj-3 {
    0% { transform: translate(190px,0); opacity: 0 }
   20% { opacity: 1 }
  100% { transform: translate(70px,0); opacity: 1 }
}
.ldio-q8hq1x9a6hj > div:nth-child(1) {
  display: block;
}
.ldio-q8hq1x9a6hj > div:nth-child(1) div {
  position: absolute;
  top: 92px;
  left: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e15b64;
  animation: ldio-q8hq1x9a6hj-3 1s linear infinite
}
.ldio-q8hq1x9a6hj > div:nth-child(1) div:nth-child(1) { animation-delay: -0.67s }
.ldio-q8hq1x9a6hj > div:nth-child(1) div:nth-child(2) { animation-delay: -0.33s }
.ldio-q8hq1x9a6hj > div:nth-child(1) div:nth-child(3) { animation-delay: 0s }
.loadingio-spinner-bean-eater-rm5suixy6y9 {
  width: 200px;
  height: 200px;
  display: inline-block;
  overflow: hidden;
  background: #ffffff;
}
.ldio-q8hq1x9a6hj {
  width: 100%;
  height: 100%;
  position: relative;
  transform: translateZ(0) scale(1);
  backface-visibility: hidden;
  transform-origin: 0 0; /* see note above */
}
.ldio-q8hq1x9a6hj div { box-sizing: content-box; }
/* generated by https://loading.io/ */
</style>

3、圆形旋转

单边圆形

<div class="loadingio-spinner-eclipse-h18b5egbhnh"><div class="ldio-exbo5m8syu">
<div></div>
</div></div>
<style type="text/css">
@keyframes ldio-exbo5m8syu {
  0% { transform: rotate(0deg) }
  50% { transform: rotate(180deg) }
  100% { transform: rotate(360deg) }
}
.ldio-exbo5m8syu div {
  position: absolute;
  animation: ldio-exbo5m8syu 1s linear infinite;
  width: 160px;
  height: 160px;
  top: 20px;
  left: 20px;
  border-radius: 50%;
  box-shadow: 0 4px 0 0 #e15b64;
  transform-origin: 80px 82px;
}
.loadingio-spinner-eclipse-h18b5egbhnh {
  width: 200px;
  height: 200px;
  display: inline-block;
  overflow: hidden;
  background: #ffffff;
}
.ldio-exbo5m8syu {
  width: 100%;
  height: 100%;
  position: relative;
  transform: translateZ(0) scale(1);
  backface-visibility: hidden;
  transform-origin: 0 0; /* see note above */
}
.ldio-exbo5m8syu div { box-sizing: content-box; }
/* generated by https://loading.io/ */
</style>

4.双圆形
在这里插入图片描述

<div class="loadingio-spinner-double-ring-htw6db2rutf"><div class="ldio-kagyr7ni72c">
<div></div>
<div></div>
<div><div></div></div>
<div><div></div></div>
</div></div>
<style type="text/css">
@keyframes ldio-kagyr7ni72c {
  0% { transform: rotate(0) }
  100% { transform: rotate(360deg) }
}
.ldio-kagyr7ni72c div { box-sizing: border-box!important }
.ldio-kagyr7ni72c > div {
  position: absolute;
  width: 144px;
  height: 144px;
  top: 28px;
  left: 28px;
  border-radius: 50%;
  border: 16px solid #000;
  border-color: #e15b64 transparent #e15b64 transparent;
  animation: ldio-kagyr7ni72c 1s linear infinite;
}

.ldio-kagyr7ni72c > div:nth-child(2), .ldio-kagyr7ni72c > div:nth-child(4) {
  width: 108px;
  height: 108px;
  top: 46px;
  left: 46px;
  animation: ldio-kagyr7ni72c 1s linear infinite reverse;
}
.ldio-kagyr7ni72c > div:nth-child(2) {
  border-color: transparent #f8b26a transparent #f8b26a
}
.ldio-kagyr7ni72c > div:nth-child(3) { border-color: transparent }
.ldio-kagyr7ni72c > div:nth-child(3) div {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(45deg);
}
.ldio-kagyr7ni72c > div:nth-child(3) div:before, .ldio-kagyr7ni72c > div:nth-child(3) div:after { 
  content: "";
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  top: -16px;
  left: 48px;
  background: #e15b64;
  border-radius: 50%;
  box-shadow: 0 128px 0 0 #e15b64;
}
.ldio-kagyr7ni72c > div:nth-child(3) div:after {
  left: -16px;
  top: 48px;
  box-shadow: 128px 0 0 0 #e15b64;
}

.ldio-kagyr7ni72c > div:nth-child(4) { border-color: transparent; }
.ldio-kagyr7ni72c > div:nth-child(4) div {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(45deg);
}
.ldio-kagyr7ni72c > div:nth-child(4) div:before, .ldio-kagyr7ni72c > div:nth-child(4) div:after {
  content: "";
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  top: -16px;
  left: 30px;
  background: #f8b26a;
  border-radius: 50%;
  box-shadow: 0 92px 0 0 #f8b26a;
}
.ldio-kagyr7ni72c > div:nth-child(4) div:after {
  left: -16px;
  top: 30px;
  box-shadow: 92px 0 0 0 #f8b26a;
}
.loadingio-spinner-double-ring-htw6db2rutf {
  width: 200px;
  height: 200px;
  display: inline-block;
  overflow: hidden;
  background: #ffffff;
}
.ldio-kagyr7ni72c {
  width: 100%;
  height: 100%;
  position: relative;
  transform: translateZ(0) scale(1);
  backface-visibility: hidden;
  transform-origin: 0 0; /* see note above */
}
.ldio-kagyr7ni72c div { box-sizing: content-box; }
/* generated by https://loading.io/ */
</style>

5、方块效果
在这里插入图片描述

<div class="loadingio-spinner-cube-5vjq8rpd7za"><div class="ldio-gewgda2c91r">
<div></div><div></div><div></div><div></div>
</div></div>
<style type="text/css">
@keyframes ldio-gewgda2c91r {
  0% { transform: scale(1.1500000000000001) }
  100% { transform: scale(1) }
}
.ldio-gewgda2c91r div {
  position: absolute;
  width: 80px;
  height: 80px;
  top: 13.333333333333336px;
  left: 13.333333333333336px;
  background: #e15b64;
  animation: ldio-gewgda2c91r 1s cubic-bezier(0,0.5,0.5,1) infinite;
  animation-delay: -0.3s;
}
.ldio-gewgda2c91r div:nth-child(2) {
  top: 13.333333333333336px;
  left: 106.66666666666666px;
  background: #f47e60;
  animation-delay: -0.2s;
}
.ldio-gewgda2c91r div:nth-child(3) {
  top: 106.66666666666666px;
  left: 13.333333333333336px;
  background: #abbd81;
  animation-delay: 0s;
}
.ldio-gewgda2c91r div:nth-child(4) {
  top: 106.66666666666666px;
  left: 106.66666666666666px;
  background: #f8b26a;
  animation-delay: -0.1s;
}
.loadingio-spinner-cube-5vjq8rpd7za {
  width: 200px;
  height: 200px;
  display: inline-block;
  overflow: hidden;
  background: #ffffff;
}
.ldio-gewgda2c91r {
  width: 100%;
  height: 100%;
  position: relative;
  transform: translateZ(0) scale(1);
  backface-visibility: hidden;
  transform-origin: 0 0; /* see note above */
}
.ldio-gewgda2c91r div { box-sizing: content-box; }
/* generated by https://loading.io/ */
</style>
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值