Javascript question

Out of context: Reply #9

  • Started
  • Last post
  • 12 Responses
  • fyoucher10

    You could set a flag / bool variable to check if it's animating and then only execute the opening animation (or anything) if the animation has completed. The bool gets set whenever the animation is complete. Prob with this is that everything is disabled while things are animating and you have to wait.

    Or you can add and remove event listeners each time you click and provide an alternate animation if an animation is already in progress.

View thread