title: Is it possible to create an endless loop of the same html elements, scrolling from the top to the bottom with a portal like effect?
body: <p>I'm trying to create an endless animation loop using a set of html elements, similar to a marquee. 
  The goal is to have all the elements visible in the container at the beginning of the animation, with each element sliding downward. As soon as the bottom element starts to go out of frame, it would appear at the top of the container again.</p>
  
  <p>What I've done so far, is duplicated the elements that I want repeated, and added a different animation for each set of elements. The animation for the first set of elements is set to start off screen and go all the way down off the opposite end of the screen at twice the amount of time it will take for the animation for the second set of elements will take.</p>
  
  <p>The second set of elements will start at the top of the container and go off screen from there.</p>
  
  <p>I get the desired result for the first iteration of this animation, but then there's a huge white space. So, I'm not really repeating the animation correctly.</p>
  
  <p>I was thinking I could use javascript to set an interval, so that every time the animation ends I could reposition the elements back into their starting spots but I'm not sure if that would be the best way to achieve this.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>   
  
   .slider {
          height: 200px;
          background-color: #ddd;
          border:solid 1px black;
          margin: 0 auto;
          overflow: hidden;
          white-space: nowrap;
          position: relative;
          display:flex;
          justify-content: flex-start;
          flex-direction: column;
        }
        .slide{
          display: flex;
          flex-direction: column;
          justify-content: flex-start;
          font-size: 20px;
          position: absolute;
          width:100%;
        }
  
        .slide &gt; div{
          height:calc(200/8);
          width:100%;
          border:solid 1px red;
          display:flex;
          justify-content: center;
        }
  
        .one{
            top:-100%;
            animation:slider2 18s linear infinite;
        }
        
        .two{
            top:0px;
            animation: slider 9s linear infinite;
        }
        
        @keyframes slider {
          0%   { top:0px; }
          100%   { top:100% }
        }
  
        @keyframes slider2{
          0%   { top:-100%; }
          100%   { top:100% }
        }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>   
  
   &lt;body&gt;
  
          &lt;div class='slider'&gt;
              &lt;div class='slide one'&gt;
                  &lt;div&gt;1&lt;/div&gt;
                  &lt;div&gt;2&lt;/div&gt;
                  &lt;div&gt;3&lt;/div&gt;
                  &lt;div&gt;4&lt;/div&gt;
                  &lt;div&gt;5&lt;/div&gt;
                  &lt;div&gt;6&lt;/div&gt;
                  &lt;div&gt;7&lt;/div&gt;
                  &lt;div&gt;8&lt;/div&gt;
              &lt;/div&gt;
              &lt;div class='slide two'&gt;
                  &lt;div&gt;1&lt;/div&gt;
                  &lt;div&gt;2&lt;/div&gt;
                  &lt;div&gt;3&lt;/div&gt;
                  &lt;div&gt;4&lt;/div&gt;
                  &lt;div&gt;5&lt;/div&gt;
                  &lt;div&gt;6&lt;/div&gt;
                  &lt;div&gt;7&lt;/div&gt;
                  &lt;div&gt;8&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
             
            
      &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>