title: how to make search bar expand to right side instead of left?
body: <p>I'm trying to make the seach bar expand when you hover over this particular div, but instead of expanding to the left (which it is currently doing) i want it to expand to the right and the search icon would move to the far right as well. Is there any way this is possible? I want the search bar to be located on the far right side of my navigation bar, thus the float:Right.</p>
  <p><div class="snippet" data-lang="js" data-hide="true" data-console="false" data-babel="false">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.search {
    border-radius: 40px;
    height: 40px;
    background-color: orange;
    float: right;
    transform: translate(-280px, 5px);
  }
  
  .search input {
    position: relative;
    left: 20px;
    top: 8px;
    padding: 5px;
    outline: none;
    width: 0px;
    border-radius: 0px 20px 20px 0px;
    border: none;
    background: transparent;
    transition: 0.2s;
  }
  
  .search:hover input {
    width: 150px;
  }
  
  .btn {
    height: 40px;
    width: 40px;
    border-radius: 20px;
    background-color: tomato;
    transform: translate(0px, -25px);
  }
  
  .btn i {
    position: Relative;
    top: 12px;
    left: 12px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="search"&gt;
    &lt;input type="text" placeholder="search..."&gt;
    &lt;div class=btn&gt;
      &lt;i class="fas fa-search"&gt;&lt;/i&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>