title: CSS Transition Width Right to Left
body: <p>I am have made a heading (the word Welcome) that reveals itself once the page has loaded (<code>onload=""</code>).</p>
  
  <p><a href="https://jsfiddle.net/olivermurfett/4bu7cw4s/" rel="noreferrer">Fiddle</a> in case the code below doesn't work.</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-js lang-js prettyprint-override"><code>function animate() {
    document.getElementById("mainText").style.width = "100%";
  
  }</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#mainText {
    margin: 0px;
    display: inline-block;
    font-size: 100px;
    width: 0%;
    transition: width 2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body onload="animate()"&gt;
    &lt;h1 id="mainText"&gt;Welcome&lt;/h1&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The CSS and Plain JS work fine but I want the word "Welcome" to be revealed right side first and then moving along, so from the e to the W, instead of how it currently is, which opens left to right.</p>
  
  <p>I have tried <code>text align: right;</code>, but this doesn't change anything.</p>
  
  <p>I preferably don't want to use any jQuery, if the solution is a JS one.</p>
  
  <p>An example of what the desired look should be, half way though the transition:</p>
  
  <p><img src="https://i.stack.imgur.com/577F1.jpg" alt=""></p>