This is what I did.
As you can see, there is freaking mess when you hover over text fast. I want so that “wave” effect would not mess up after second immidiate hover and only after that “wave” effect can be done again.
Thnx in advance!
This is what I did . As you can see, there is freaking mess
Share
http://jsbin.com/aqorip/3/
You should add
runningvariable which must be true while animation is processing. if this variable is true, we will not start new animation. Callback of animate will be called after the end of enimation. We can check if it is last letter or not and setrunningto true if it is.Notice that you had unused variable
i. You shouldn’t declare it because you haveias an argument of a function. So firstiin your code will be hidden behind the argumenti.