1 Reply Latest reply on Jul 12, 2014 9:22 AM by heathrowe

    How to (re)start an animation on mouseenter




      I would like to have an animation play once, each time the mouse enters an area.

      2750 milliseconds is where the animation begins, and 4250 is where it ends.


      Once the animation begins playing, I want mouseenter events to be ignored, until the animation has finished.


      The code below is not working properly, it only plays the animation the first time mouseenter is run.


      What am I doing wrong?



         //Edge symbol: 'stage'
         (function(symbolName) {
            var spinning = false;


            Symbol.bindElementAction(compId, symbolName, "${_interaction}", "mouseenter", function(sym, e) {
               if (!spinning){
                spinning = true;

            //Edge binding end


            Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 4250, function(sym, e) {
               spinning = false;

            //Edge binding end


         //Edge symbol end:'stage'