updateBadge animation problem RRS feed

  • Question

  • badge = element.querySelector("#weather-text");            

    var badge;

    var animating = WinJS.Promise.wrap();

    setInterval(animateText, 3000);


    function animateText(){

       animating = animating.then(function ()


                  badge.innerHTML = "Content";
                  return WinJS.UI.Animation.updateBadge(badge);



    When I execute above animation code and if i hover my mouse over the 'weatherText' div while animation it loses its animation and shows the content in div directly.

    how can i solve it?

    Monday, April 1, 2013 12:26 PM