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

四组欢乐的CSS3 Loading加载动画DEMO演示

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

四组欢乐的CSS3 Loading加载动画DEMO演示-脚本宝典

css3样式

@keyframes move {
  from { transform: translate(0,50%); }
  to { transform: translate(0,850%); }
}

* {
  margin: 0;
  padding: 0;
}

body {
  min-width: 325px;
  height: 100vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  align-content: flex-start;
  background: #2a2a2a;
}

figure {
  margin: 30px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  position: relative;
  background: #1c1c1c;
}

section {
  width: 10%;
  height: 100%;
  position: absolute;
  left: 45%;
}

section:nth-child(2) { transform: rotate(22.5deg);  }
section:nth-child(3) { transform: rotate(45deg);    }
section:nth-child(4) { transform: rotate(67.5deg);  }
section:nth-child(5) { transform: rotate(90deg);    }
section:nth-child(6) { transform: rotate(112.5deg); }
section:nth-child(7) { transform: rotate(135deg);   }
section:nth-child(8) { transform: rotate(157.5deg); }

figure div {
  height: 10%;
  border-radius: 50%;
  background: dodgerblue;
  animation: move 1s ease-in-out infinite alternate;
}

figure:nth-child(1) > section:nth-child(1) > div { animation-delay: -0.1875s; }
figure:nth-child(1) > section:nth-child(2) > div { animation-delay: -0.175s;  }
figure:nth-child(1) > section:nth-child(3) > div { animation-delay: -0.1625s; }
figure:nth-child(1) > section:nth-child(4) > div { animation-delay: -0.15s;   }
figure:nth-child(1) > section:nth-child(5) > div { animation-delay: -0.9375s; }
figure:nth-child(1) > section:nth-child(6) > div { animation-delay: -0.925s;  }
figure:nth-child(1) > section:nth-child(7) > div { animation-delay: -0.9125s; }
figure:nth-child(1) > section:nth-child(8) > div { animation-delay: -0.9s;    }

figure:nth-child(2) > section:nth-child(1) > div { animation-delay: -0.875s;  }
figure:nth-child(2) > section:nth-child(2) > div { animation-delay: -0.75s;   }
figure:nth-child(2) > section:nth-child(3) > div { animation-delay: -0.625s;  }
figure:nth-child(2) > section:nth-child(4) > div { animation-delay: -0.5s;    }
figure:nth-child(2) > section:nth-child(5) > div { animation-delay: -0.375s;  }
figure:nth-child(2) > section:nth-child(6) > div { animation-delay: -0.25s;   }
figure:nth-child(2) > section:nth-child(7) > div { animation-delay: -0.125s;  }

figure:nth-child(3) > section:nth-child(1) > div { animation-delay: -0.5s;    }
figure:nth-child(3) > section:nth-child(3) > div { animation-delay: -0.5s;    }
figure:nth-child(3) > section:nth-child(5) > div { animation-delay: -0.5s;    }
figure:nth-child(3) > section:nth-child(7) > div { animation-delay: -0.5s;    }

figure:nth-child(4) > section:nth-child(1) > div { animation-delay: -0.35s;   }
figure:nth-child(4) > section:nth-child(2) > div { animation-delay: -0.3s;    }
figure:nth-child(4) > section:nth-child(3) > div { animation-delay: -0.25s;   }
figure:nth-child(4) > section:nth-child(4) > div { animation-delay: -0.2s;    }
figure:nth-child(4) > section:nth-child(5) > div { animation-delay: -0.15s;   }
figure:nth-child(4) > section:nth-child(6) > div { animation-delay: -0.1s;    }
figure:nth-child(4) > section:nth-child(7) > div { animation-delay: -0.05s;   }

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

总结

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

四组欢乐的CSS3 Loading加载动画DEMO演示

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

四组欢乐的CSS3 Loading加载动画DEMO演示

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

80%的人都看过