title: How can i repeat css3 animation on click?
body: <p>I create an element and on click I toggleClass .anim so when it is added the animation works but when it's removed the animation obviously doesn't work. How do I make it work everytime I click on this element ?   </p>
  
  <pre><code>$( "&lt;div/&gt;", {
     "class": "test",
     text: "Click me!",
     click : function(){
     $(this).toggleClass('anim');
        }    
  }).appendTo( "body" );
  </code></pre>
  
  <p><a href="http://jsfiddle.net/TomasRR/7jskthcm/15/" rel="nofollow">http://jsfiddle.net/TomasRR/7jskthcm/15/</a></p>