 
  .star { 
    position: relative;
    width: 1px;
    height: 1px;
    background-color: white;
    position: fixed;
    animation-name: particleAnimation;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }
  
  .star::before{ 
    position: absolute;
    display: block;
    content: "";
    width: 100px;
    right: 1px;
    top: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(0,0,0,0) 0%,rgba(255,255,255,0.4) 100%); 
  }
  
  .star:nth-of-type(1) {
     top: 25%;
     animation-duration: 4s;}
  
  @keyframes particleAnimation {
      from {
          left: -100px;
      }
      to {
          left: calc(100% + 100px);
      }
  }