title: Add and remove class javascript loop
body: <p>I have this javascript code: </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $("#aa").addClass("animatedaa fadeIn");
      setTimeout(function () {
          $("#aa").removeClass("animatedaa fadeIn"),
                  $("#aa").addClass("animatedaaout fadeOut");
      }, 3500);
  
      $("#bb").addClass("animatedbb fadeIn");
      setTimeout(function () {
          $("#bb").removeClass("animatedbb fadeIn"),
                  $("#bb").addClass("animatedbbout fadeOut");
      }, 5000);
  &lt;/script&gt;
  </code></pre>
  
  <p>How can I achieve to make infinite loop, so this events "addClass" and "removeClass" repeat infinite?</p>
  
  <p>Best regards and thank you for your answers. </p>