6 Replies Latest reply on May 11, 2017 9:40 AM by resdesign

    Animation "delay" in script

    AquariusCZ Level 1

      Hello,

       

      is there any way, how to achieve this:

      If cursor is for less then 50ms on element, then do not start action, else start action?

       

      Code:

      sym.$("marvel").animate({"opacity":1.00},200);

      sym.$("malibu").animate({"opacity":0.40},200);

      sym.$("music-vid").animate({"opacity":0.40},200);

      sym.$("mazda6").animate({"opacity":0.40},200);

      sym.$("history").animate({"opacity":0.40},200);

      sym.$("abs-jets2").animate({"opacity":0.40},200);

       

      The problem is, when i start moving mouse around quickly, my webpage turns in blinking hell :-)

      http://worldofaquarius.com/~Aquarius/HP.html