title: Changing the direction of a css arrow
body: <p>I have gotten a css animation arrow the is pointed left to right and it works as expected- the animation also works fine. I am trying to change the direction of this arrow so that is points from right to left. I have tried to change the before and after elements but this does not seem to change the direction of the arrow?</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>body {
    background: black;
  }
  
  .the-arrow {
    width: 64px;
    transition: all 0.2s;
  }
  
  .the-arrow.-left {
    position: absolute;
    top: 60%;
    left: 0;
  }
  
  .the-arrow.-left .shaft {
    width: 0;
    background-color: #999;
  }
  
  .the-arrow.-left .shaft:before,
  .the-arrow.-left .shaft:after {
    width: 0;
    background-color: #999;
  }
  
  .the-arrow.-left .shaft:before {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  
  .the-arrow.-left .shaft:after {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  
  .the-arrow.-right {
    top: 3px;
  }
  
  .the-arrow.-right .shaft {
    width: 64px;
    transition-delay: 0.2s;
  }
  
  .the-arrow.-right .shaft:before,
  .the-arrow.-right&gt;.shaft:after {
    width: 8px;
    transition-delay: 0.3s;
    transition: all 0.5s;
  }
  
  .the-arrow.-right .shaft:before {
    -webkit-transform: rotate(40deg);
    transform: rotate(40deg);
  }
  
  .the-arrow.-right .shaft:after {
    -webkit-transform: rotate(-40deg);
    transform: rotate(-40deg);
  }
  
  .the-arrow .shaft {
    background-color: #fff;
    display: block;
    height: 1px;
    position: relative;
    transition: all 0.2s;
    transition-delay: 0;
    will-change: transform;
  }
  
  .the-arrow .shaft:before,
  .the-arrow .shaft:after {
    background-color: #fff;
    content: '';
    display: block;
    height: 1px;
    position: absolute;
    top: 0;
    right: 0;
    transition: all 0.2s;
    transition-delay: 0;
  }
  
  .the-arrow .shaft:before {
    -webkit-transform-origin: top right;
    transform-origin: top right;
  }
  
  .the-arrow .shaft:after {
    -webkit-transform-origin: bottom right;
    transform-origin: bottom right;
  }
  
  .animated-arrow {
    display: inline-block;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    position: relative;
    transition: all 0.2s;
  }
  
  .animated-arrow:hover {
    color: #eaeaea;
  }
  
  .animated-arrow:hover .the-arrow.-left .shaft {
    width: 64px;
    transition-delay: 0.1s;
    background-color: #eaeaea;
  }
  
  .animated-arrow:hover .the-arrow.-left .shaft:before,
  .animated-arrow:hover .the-arrow.-left .shaft:after {
    width: 8px;
    transition-delay: 0.1s;
    background-color: #eaeaea;
  }
  
  .animated-arrow:hover .the-arrow.-left .shaft:before {
    -webkit-transform: rotate(40deg);
    transform: rotate(40deg);
  }
  
  .animated-arrow:hover .the-arrow.-left .shaft:after {
    -webkit-transform: rotate(-40deg);
    transform: rotate(-40deg);
  }
  
  .animated-arrow:hover .main {
    -webkit-transform: translateX(80px);
    transform: translateX(80px);
  }
  
  .animated-arrow:hover .main .the-arrow.-right .shaft {
    width: 0;
    -webkit-transform: translateX(200%);
    transform: translateX(200%);
    transition-delay: 0;
  }
  
  .animated-arrow:hover .main .the-arrow.-right .shaft:before,
  .animated-arrow:hover .main .the-arrow.-right .shaft:after {
    width: 0;
    transition-delay: 0;
    transition: all 0.1s;
  }
  
  .animated-arrow:hover .main .the-arrow.-right .shaft:before {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  
  .animated-arrow:hover .main .the-arrow.-right .shaft:after {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  
  .animated-arrow .main {
    display: flex;
    align-items: center;
    transition: all 0.2s;
  }
  
  .animated-arrow .main .text {
    margin: 0 16px 0 0;
    line-height: 1;
    font-family: 'Montserrat';
    text-transform: uppercase;
  }
  
  .animated-arrow .main .the-arrow {
    position: relative;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="pivot-arrows-1" style=""&gt;
  
  
    &lt;a class="animated-arrow arrow-c-f" href="#"&gt;
      &lt;span class="the-arrow -left"&gt;
        &lt;span class="shaft"&gt;&lt;/span&gt;
      &lt;/span&gt;
      &lt;span class="main"&gt;
        &lt;span class="text"&gt;
          Link Text
        &lt;/span&gt;
      &lt;span class="the-arrow -right"&gt;
          &lt;span class="shaft"&gt;&lt;/span&gt;
      &lt;/span&gt;
      &lt;/span&gt;
    &lt;/a&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>