Live Notification with animate.css animation

Live Notification with animate.css animation

Hey together,

i have a small problem, but since the last week i search for a solution, but i can't find it. 

This is my actual code:

  1. var oldValue = null;
  2.  
  3. function repeatMe() {
  4.   $.ajax({
  5.     url: 'test.php',
  6.     success: function(data) {
  7.       $('.notifications-count').html(data);
  8.       // First Load
  9.       if (oldValue == null) {
  10.         $('.notifications-count').addClass('animated bounceIn');
  11.       }
  12.       // When data is different to oldValue show animation
  13.       else if (data != oldValue) {
  14.           $('.notifications-count').removeClass('animated bounceIn').addClass('animated wobble');
  15.       }
  16.       oldValue = data;
  17.     }
  18.   });
  19. }
  20.  setInterval(repeatMe, 1000);
My problem is now, the bounceIn animation works correct while page load, the wobble effect works good, when the number of wiki_posts becomes bigger oder smaller. 

But only once! What is the problem? Can someone help me?

Thanks in advance 

Dennis