figure {
  position: relative;
  width: 2px;
  height: 2px;
  animation: wave 15s ease-in-out reverse infinite;
}

@-webkit-keyframes wave {
  0%, 100% {
    transform: rotate(-50deg);
  }
  50% {
    transform: rotate(50deg);
  }
}

@keyframes wave {
  0%, 100% {
    transform: rotate(-50deg);
  }
  50% {
    transform: rotate(50deg);
  }
}
.wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2px;
  height: 2px;
}
.wrapper:nth-child(1) {
  transform: rotate(9deg);
  color: #ff2600;
}
.wrapper:nth-child(2) {
  transform: rotate(18deg);
  color: #ff4d00;
}
.wrapper:nth-child(3) {
  transform: rotate(27deg);
  color: #ff7300;
}
.wrapper:nth-child(4) {
  transform: rotate(36deg);
  color: #ff9900;
}
.wrapper:nth-child(5) {
  transform: rotate(45deg);
  color: #ffbf00;
}
.wrapper:nth-child(6) {
  transform: rotate(54deg);
  color: #ffe600;
}
.wrapper:nth-child(7) {
  transform: rotate(63deg);
  color: #f2ff00;
}
.wrapper:nth-child(8) {
  transform: rotate(72deg);
  color: #ccff00;
}
.wrapper:nth-child(9) {
  transform: rotate(81deg);
  color: #a6ff00;
}
.wrapper:nth-child(10) {
  transform: rotate(90deg);
  color: #80ff00;
}
.wrapper:nth-child(11) {
  transform: rotate(99deg);
  color: #59ff00;
}
.wrapper:nth-child(12) {
  transform: rotate(108deg);
  color: #33ff00;
}
.wrapper:nth-child(13) {
  transform: rotate(117deg);
  color: #0dff00;
}
.wrapper:nth-child(14) {
  transform: rotate(126deg);
  color: #00ff1a;
}
.wrapper:nth-child(15) {
  transform: rotate(135deg);
  color: #00ff40;
}
.wrapper:nth-child(16) {
  transform: rotate(144deg);
  color: #00ff66;
}
.wrapper:nth-child(17) {
  transform: rotate(153deg);
  color: #00ff8c;
}
.wrapper:nth-child(18) {
  transform: rotate(162deg);
  color: #00ffb3;
}
.wrapper:nth-child(19) {
  transform: rotate(171deg);
  color: #00ffd9;
}
.wrapper:nth-child(20) {
  transform: rotate(180deg);
  color: aqua;
}
.wrapper:nth-child(21) {
  transform: rotate(189deg);
  color: #00d9ff;
}
.wrapper:nth-child(22) {
  transform: rotate(198deg);
  color: #00b3ff;
}
.wrapper:nth-child(23) {
  transform: rotate(207deg);
  color: #008cff;
}
.wrapper:nth-child(24) {
  transform: rotate(216deg);
  color: #0066ff;
}
.wrapper:nth-child(25) {
  transform: rotate(225deg);
  color: #0040ff;
}
.wrapper:nth-child(26) {
  transform: rotate(234deg);
  color: #001aff;
}
.wrapper:nth-child(27) {
  transform: rotate(243deg);
  color: #0d00ff;
}
.wrapper:nth-child(28) {
  transform: rotate(252deg);
  color: #3300ff;
}
.wrapper:nth-child(29) {
  transform: rotate(261deg);
  color: #5900ff;
}
.wrapper:nth-child(30) {
  transform: rotate(270deg);
  color: #8000ff;
}
.wrapper:nth-child(31) {
  transform: rotate(279deg);
  color: #a600ff;
}
.wrapper:nth-child(32) {
  transform: rotate(288deg);
  color: #cc00ff;
}
.wrapper:nth-child(33) {
  transform: rotate(297deg);
  color: #f200ff;
}
.wrapper:nth-child(34) {
  transform: rotate(306deg);
  color: #ff00e6;
}
.wrapper:nth-child(35) {
  transform: rotate(315deg);
  color: #ff00bf;
}
.wrapper:nth-child(36) {
  transform: rotate(324deg);
  color: #ff0099;
}
.wrapper:nth-child(37) {
  transform: rotate(333deg);
  color: #ff0073;
}
.wrapper:nth-child(38) {
  transform: rotate(342deg);
  color: #ff004d;
}
.wrapper:nth-child(39) {
  transform: rotate(351deg);
  color: #ff0026;
}
.wrapper:nth-child(40) {
  transform: rotate(360deg);
  color: red;
}

.rod {
  width: 2px;
  height: 100vmax;
  transform-origin: center 25%;
  -webkit-animation: rod 15s ease-in-out alternate infinite;
          animation: rod 15s ease-in-out alternate infinite;
  background: currentColor;
  border-radius: 2px;
  border-radius: 50%;
}

@-webkit-keyframes rod {
  0%, 100% {
    transform: rotate(-50deg);
  }
  50% {
    transform: rotate(50deg);
  }
}

@keyframes rod {
  0%, 100% {
    transform: rotate(-50deg);
  }
  50% {
    transform: rotate(50deg);
  }
}
html, body {
  height: 100%;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6;
  -webkit-animation: spin 20s linear infinite;
          animation: spin 20s linear infinite;
          overflow:hidden;
  
}

@-webkit-keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}