title: How to animate vertical lines growing up and down using CSS?
body: <p>I want to create a rectangle and animate the drawing of lines. The lines should grow vertically up and down from the rectangle. Totally, I want to have 2 lines growing up, and 2 lines growing down.</p>
  
  <p>This is my current script:    </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>.content {
    position: fixed;
    background-color: #dd8341;
    top: 40%;
    width: 100%;
    height: 20%;
    padding: 20px;
  }
  
  .vertline {
    width: 2px;
    margin-left: 10%;
    background-color: #dd8341;
    top: 40%;
    animation:lineup 3s forwards;
    position: relative;
  }
  
  @keyframes lineup {
    0% {
      height: 0px;
    }
    100% {
      height: 200px;
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="content"&gt;&lt;/div&gt;
  &lt;div class="vertline"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I cannot align all elements correctly. What is the correct way to do this simple task?</p>