html--纯css粒子动画

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> New Document </TITLE>
  <META NAME="Generator" CONTENT="EditPlus">
  <META NAME="Author" CONTENT="">
  <META NAME="Keywords" CONTENT="">
  <META NAME="Description" CONTENT="">
  <style>body {
  background: #fff;
  height: 100vh;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-family: 'Anton', sans-serif;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-perspective: 1000px;
          perspective: 1000px;
}

div {
  position: absolute;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}

#egg .stage:nth-child(1) .inner {
  border-radius: 100%;
  -webkit-transform: translate(-50%, -50%) translateZ(200px);
          transform: translate(-50%, -50%) translateZ(200px);
}
#egg .stage:nth-child(1) .circle:nth-child(1) .x {
  -webkit-animation: rotateX 23860ms -2574ms linear infinite;
          animation: rotateX 23860ms -2574ms linear infinite;
}
#egg .stage:nth-child(1) .circle:nth-child(1) .y {
  -webkit-animation: rotateY 13624ms -2447ms linear infinite;
          animation: rotateY 13624ms -2447ms linear infinite;
}
#egg .stage:nth-child(1) .circle:nth-child(1) .inner {
  width: 25px;
  height: 25px;
  background: #8478a0;
}
#egg .stage:nth-child(1) .circle:nth-child(1) .inner::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-transform: translateZ(-1px);
          transform: translateZ(-1px);
  border-radius: 100%;
  background: rgba(255, 255, 255, 0.8);
}
#egg .stage:nth-child(1) .circle:nth-child(2) .x {
  -webkit-animation: rotateX 22036ms -2088ms linear infinite;
          animation: rotateX 22036ms -2088ms linear infinite;
}
#egg .stage:nth-child(1) .circle:nth-child(2) .y {
  -webkit-animation: rotateY 20357ms -853ms linear infinite;
          animation: rotateY 20357ms -853ms linear infinite;
}
#egg .stage:nth-child(1) .circle:nth-child(2) .inner {
  width: 12px;
  height: 12px;
  background: #4978a0;
}
#egg .stage:nth-child(1) .circle:nth-child(2) .inner::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-transform: translateZ(-1px);
          transform: translateZ(-1px);
  border-radius: 100%;
  background: rgba(255, 255, 255, 0.8);
}
#egg .stage:nth-child(1) .circle:nth-child(3) .x {
  -webkit-animation: rotateX 23240ms -2294ms linear infinite;
          animation: rotateX 23240ms -2294ms linear infinite;
}
#egg .stage:nth-child(1) .circle:nth-child(3) .y {
  -webkit-animation: rotateY 13790ms -1272ms linear infinite;
          animation: rotateY 13790ms -1272ms linear infinite;
}
#egg .stage:nth-child(1) .circle:nth-child(3) .inner {
  width: 35px;
  height: 35px;
  background: #8a78a0;
}
#egg .stage:nth-child(1) .circle:nth-child(3) .inner::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-transform: translateZ(-1px);
          transform: translateZ(-1px);
  border-radius: 100%;
  background: rgba(255, 255, 255, 0.8);
}
#egg .stage:nth-child(1) .circle:nth-child(4) .x {
  -webkit-animation: rotateX 12361ms -884ms linear infinite;
          animation: rotateX 12361ms -884ms linear infinite;
}
#egg .stage:nth-child(1) .circle:nth-child(4) .y {
  -webkit-animation: rotateY 26279ms -1598ms linear infinite;
          animation: rotateY 26279ms -1598ms linear infinite;
}
#egg .stage:nth-child(1) .circle:nth-child(4) .inner {
  width: 29px;
  height: 29px;
  background: #1378a0;
}
#egg .stage:nth-child(1) .circle:nth-child(4) .inner::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-transform: translateZ(-1px);
          transform: translateZ(-1px);
  border-radius: 100%;
  background: rgba(255, 255, 255, 0.8);
}
#egg .stage:nth-child(1) .circle:nth-child(5) .x {
  -webkit-animation: rotateX 28912ms -929ms linear infinite;
          animation: rotateX 28912ms -929ms linear infinite;
}
#egg .stage:nth-child(1) .circle:nth-child(5) .y {
  -webkit-animation: rotateY 19679ms -1557ms linear infinite;
          animation: rotateY 19679ms -1557ms linear infinite;
}
#egg .stage:nth-child(1) .circle:nth-child(5) .inner {
  width: 30px;
  height: 30px;
  background: #2578a0;
}
#egg .stage:nth-child(1) .circle:nth-child(5) .inner::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-transform: translateZ(-1px);
          transform: translateZ(-1px);
  border-radius: 100%;
  background: rgba(255, 255, 255, 0.8);
}
#egg .stage:nth-child(1) .circle:nth-child(6) .x {
  -webkit-animation: rotateX 26470ms -660ms linear infinite;
          animation: rotateX 26470ms -660ms linear infinite;
}
#egg .stage:nth-child(1) .circle:nth-child(6) .y {
  -webkit-animation: rotateY 24459ms -1541ms linear infinite;
          animation: rotateY 24459ms -1541ms linear infinite;
}
#egg .stage:nth-child(1) .circle:nth-child(6) .inner {
  width: 11px;
  height: 11px;
  background: #1678a0;
}
#egg .stage:nth-child(1) .circle:nth-child(6) .inner::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-transform: translateZ(-1px);
          transform: translateZ(-1px);
  border-radius: 100%;
  background: rgba(255, 255, 255, 0.8);
}
#egg .stage:nth-child(1) .circle:nth-child(7) .x {
  -webkit-animation: rotateX 13310ms -2610ms linear infinite;
          animation: rotateX 13310ms -2610ms linear infinite;
}
#egg .stage:nth-child(1) .circle:nth-child(7) .y {
  -webkit-animation: rotateY 19625ms -611ms linear infinite;
          animation: rotateY 19625ms -611ms linear infinite;
}
#egg .stage:nth-child(1) .circle:nth-child(7) .inner {
  width: 22px;
  height: 22px;
  background: #2a78a0;
}
#egg .stage:nth-child(1) .circle:nth-child(7) .inner::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-transform: translateZ(-1px);
          transform: translateZ(-1px);
  border-radius: 100%;
  background: rgba(255, 255, 255, 0.8);
}
#egg .stage:nth-child(1) .circle:nth-child(8) .x {
  -webkit-animation: rotateX 20200ms -1311ms linear infinite;
          animation: rotateX 20200ms -1311ms linear infinite;
}
#egg .stage:nth-child(1) .circle:nth-child(8) .y {
  -webkit-animation: rotateY 19933ms -1896ms linear infinite;
          animation: rotateY 19933ms -1896ms linear infinite;
}
#egg .stage:nth-child(1) .circle:nth-child(8) .inner {
  width: 16px;
  height: 16px;
  background: #4578a0;
}
#egg .stage:nth-child(1) .circle:nth-child(8) .inner::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-transform: translateZ(-1px);
          transform: translateZ(-1px);
  border-radius: 100%;
  background: rgba(255, 255, 255, 0.8);
}
#egg .stage:nth-child(1) .circle:nth-child(9) .x {
  -webkit-animation: rotateX 12144ms -1894ms linear infinite;
          animation: rotateX 12144ms -1894ms linear infinite;
}
#egg .stage:nth-child(1) .circle:nth-child(9) .y {
  -webkit-animation: rotateY 13642ms -1592ms linear infinite;
          animation: rotateY 13642ms -1592ms linear infinite;
}
#egg .stage:nth-child(1) .circle:nth-child(9) .inner {
  width: 17px;
  height: 17px;
  background: #7c78a0;
}

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

fo安方

觉得俺的文章还行,感谢打赏,爱

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值