Hex Kaleidoscope



Hex Kaleidoscope




 <div class="blobs">
  <div class="blob"></div>
  <div class="blob"></div>
</div>


                    
                  
                



 body {
  background:black;
  }

.blobs {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: black;
  width: 400px;
  height: 200px;
  -webkit-filter: blur(16px) contrast(40);
  filter: blur(16px) contrast(40);
}

.blob {
  background: #f06d06;
  width: 100px;
  height: 100px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: -50px;
  margin-left: -50px;
  border-radius: 100%;
          &:before {
    content: " ";
    position: absolute;
    background: black;
    }
}
 

@keyframes blob-anim-left {
  0% {
    transform: translateX(-10px);
  }
  100% {
    transform: translateX(-55px);
    animation-timing-function: ease-out;
background:rgba(red,0.95);
  }
}

.blob:first-child {
  animation: blob-anim-left 0.8s cubic-bezier(.14, .75, .2, 1.01) infinite alternate;
      &:before {
left:0;
    }
}

@keyframes blob-anim-right {
  0% {
    transform: translateX(10px);
  }
  100% {
    transform: translateX(55px);
    animation-timing-function: ease-out;
background:rgba(red,0.95);
  }
}

.blob:last-child {
  animation: blob-anim-right 0.8s cubic-bezier(.14, .75, .2, 1.01) infinite alternate;
          &:before {
right:0;
    }
}

@keyframes before-blob {
  0% {
width:0;height:0;
  }
  100% {
width:16px;height:36px;
  }
}

.blob:before {
  animation: before-blob 0.8s cubic-bezier(.14, .75, .2, 1.01) infinite alternate;
}