title: progress bar animation is not working
body: <p>I'm doing progress bar the problem is bar animation is not working. I want bar track moves left to right simultaneously <code>%</code> also moves I try but not working animation is not working properly.
  can anyone suggest.</p>
  
  <p>thanks.</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>$(document).ready(function() {
    function ProgressBar() {
      $('.progress-bar').each(function() {
        var percent = $(this).find('.progress-bar--barTrack').attr('data-width');
        $(this).find('.progress-bar--barTrack').css('width', percent + '%');
        $(this).find('.progress-bar--label').append(percent + '%');
        $('.progress-bar--barTrack').animate({
          width: $(this).percent,
        }, 5000);
      });
    }
    ProgressBar();
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.progress-bar {
    position: relative;
  }
  
  .progress-bar-s1 .progress--barTitle {
    padding: 1% 1% 3% 0;
    width: 15%;
  }
  
  .progress-bar-s1 .progress-bar--inner {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.09) inset;
    background-color: #ebebeb;
  }
  
  .progress-bar-s1 .progress-bar--barTrack {
    position: relative;
    display: block;
    padding: 20px 0;
    width: 0;
    background-color: #F7CA18;
  }
  
  .progress-bar-s1 span.progress-bar--label {
    position: absolute;
    top: 35%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="progress-bar progress-bar-s1"&gt;
    &lt;div class="progress--barTitle"&gt;Integrity&lt;/div&gt;
    &lt;div class="progress-bar--inner"&gt;
      &lt;span class="progress-bar--barTrack" data-width="60"&gt;&lt;/span&gt;
    &lt;/div&gt;
    &lt;span class="progress-bar--label"&gt;&lt;/span&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>