css彩色点状波浪波纹动画效果代码

代码语言:html

所属分类:动画

代码描述:css彩色点状波浪波纹动画效果代码

代码标签: css 点状 波纹 波浪 动画

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


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

<head>

  <meta charset="UTF-8">

  
  
<style>
*, *::before, *::after {
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
}

body {
  background-color: #111;
  color: #fff;
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.dots {
  display: grid;
  grid-template-columns: repeat(20, 24px);
  grid-template-rows: repeat(20, 24px);
  place-items: center;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: hsl(var(--hue), 90%, 70%);
  border-radius: 50%;
  -webkit-animation: dot 24s calc(var(--delay1, 0s) + var(--delay2, 0s)) infinite ease-in-out;
          animation: dot 24s calc(var(--delay1, 0s) + var(--delay2, 0s)) infinite ease-in-out;
}
@-webkit-keyframes dot {
  from {
    transform: rotate(0deg) translateX(24px);
  }
  to {
    transform: rotate(1440deg) translateX(24px);
  }
}
@keyframes dot {
  from {
    transform: rotate(0deg) translateX(24px);
  }
  to {
    transform: rotate(1440deg) translateX(24px);
  }
}
.dot:nth-child(1) {
  --hue: 192.9460973711;
}
.dot:nth-child(2) {
  --hue: 11.0299027535;
}
.dot:nth-child(3) {
  --hue: 93.7897042146;
}
.dot:nth-child(4) {
  --hue: 273.0656838681;
}
.dot:nth-child(5) {
  --hue: 211.987106356;
}
.dot:nth-child(6) {
  --hue: 6.9924443104;
}
.dot:nth-child(7) {
  --hue: 223.2418828706;
}
.dot:nth-child(8) {
  --hue: 10.6964875336;
}
.dot:nth-child(9) {
  --hue: 167.2682332457;
}
.dot:nth-child(10) {
  --hue: 199.9328269576;
}
.dot:nth-child(11) {
  --hue: 274.7611250115;
}
.dot:nth-child(12) {
  --hue: 46.1148964847;
}
.dot:nth-child(13) {
  --hue: 222.9176597256;
}
.dot:nth-child(14) {
  --hue: 118.8620810477;
}
.dot:nth-child(15) {
  --hue: 29.5313136929;
}
.dot:nth-child(16) {
  --hue: 31.1321277103;
}
.dot:nth-child(17) {
  --hue: 308.5284609435;
}
.dot:nth-child(18) {
  --hue: 62.5929627923;
}
.dot:nth-child(19) {
  --hue: 221.4420486182;
}
.dot:nth-child(20) {
  --hue: 269.6109703217;
}
.dot:nth-child(21) {
  --hue: 19.3255369867;
}
.dot:nth-child(22) {
  --hue: 294.7826917138;
}
.dot:nth-child(23) {
  --hue: 348.2813376879;
}
.dot:nth-child(24) {
  --hue: 104.9594519582;
}
.dot:nth-child(25) {
  --hue: 143.0894217844;
}
.dot:nth-child(26) {
  --hue: 265.1288818735;
}
.dot:nth-child(27) {
  --hue: 267.8354215724;
}
.dot:nth-child(28) {
  --hue: 342.4777234816;
}
.dot:nth-child(29) {
  --hue: 288.2718709664;
}
.dot:nth-child(30) {
  --hue: 119.5242649467;
}
.dot:nth-child(31) {
  --hue: 51.1500321412;
}
.dot:nth-child(32) {
  --hue: 248.318086309;
}
.dot:nth-child(33) {
  --hue: 24.445523116;
}
.dot:nth-child(34) {
  --hue: 60.716975465;
}
.dot:nth-child(35) {
  --hue: 194.7530762517;
}
.dot:nth-child(36) {
  --hue: 89.3129753101;
}
.dot:nth-child(37) {
  --hue: 94.6623260629;
}
.dot:nth-child(38) {
  --hue: 167.7679829083;
}
.dot:nth-child(39) {
  --hue: 308.6331816435;
}
.dot:nth-child(40) {
  --hue: 172.1708231923;
}
.dot:nth-child(41) {
  --hue: 242.8571031498;
}
.dot:nth-child(42) {
  --hue: 254.4536339409;
}
.dot:nth-child(43) {
  --hue: 277.032218538;
}
.dot:nth-child(44) {
  --hue: 95.430192676;
}
.dot:nth-child(45) {
  --hue: 173.6156921295;
}
.dot:nth-child(46) {
  --hue: 110.1632381861;
}
.dot:nth-child(47) {
  --hue: 357.4375794869;
}
.dot:nth-child(48) {
  --hue: 238.7018300455;
}
.dot:nth-child(49) {
  --hue: 116.5013879106;
}
.dot:nth-child(50) {
  --hue: 136.2044999601;
}
.dot:nth-child(51) {
  --hue: 260.0504435528;
}
.dot:nth-child(52) {
  --hue: 88.6718555808;
}
.dot:nth-child(53) {
  --hue: 252.6486533372;
}
.dot:nth-child(54) {
  --hue: 52.7614479869;
}
.dot:nth-child(55) {
  --hue: 202.5599547685;
}
.dot:nth-child(56) {
  --hue: 167.003200337;
}
.dot:nth-child(57) {
  --hue: 159.9151813099;
}
.dot:nth-child(58) {
  --hue: 218.9902363411;
}
.dot:nth-child(59) {
  --hue: 116.4532527005;
}
.dot:nth-child(60) {
  --hue: 124.9957331131;
}
.dot:nth-child(61) {
  --hue: 308.6502872657;
}
.dot:nth-child(62) {
  --hue: 102.4418029587;
}
.dot:nth-child(63) {
  --hue: 163.6976783972;
}
.dot:nth-child(64) {
  --hue: 310.7873661935;
}
.dot:nth-child(65) {
  --hu.........完整代码请登录后点击上方下载按钮下载查看

网友评论0