title: Expanding border bottom with focus on text input
body: <p>I would like to make this <code>border-bottom</code> still visible when <code>input</code> is on <code>focus</code>.</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>.expand input {
    padding: 10px;
    border: none;
    background: #eee;
  }
  
  .expand {
    display: inline-block;
  }
  
  .expand:after {
    display: block;
    content: "";
    border-bottom: 3px solid #2bcf67;
    transform: scaleX(0);
    transition: transform 0.5s;
    transform-origin:  0% 50%;
  }
  
  .expand:focus:after {
    transform: scaleX(1);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="expand" tabindex="0"&gt;
    &lt;input type="text" name="" id="" placeholder="Your text"&gt;
    Click here
  &lt;/div&gt;
  
  &lt;p&gt;I would like to have same effect but clicking on text input&lt;/p&gt;</code></pre>
  </div>
  </div>
  </p>