7 Replies Latest reply on Nov 21, 2013 1:11 PM by DDcreams

    Why does my bar graph run automatically when it's supposed to run only on mouseover?

    LSmith8687

      I'm creating a bar graph for a project and want the bar to rise when the mouse hovers over it. Right now, the bar automatically rises when I run the project. I want it to rise ONLY when I mouseover it.

       

      My mouseover code is:

       

      $( "W" ).animate({

          left: "+=50",

        }, 5000, function() {

          // Animation complete.

        });

       

      and my trigger code is:

       

      var white = sym.$("W");

      W.stop();