Avatar of APD Toronto
APD Toronto
Flag for Canada

asked on 

jQuery Time Off Event

Hello Experts,

I am taking a jQuery classes and need to create a "Wack a Gopher" game.  It is almost done, but I dont know how to do the following:

The mallet's css should change somehow to give the user a graphic representation that it was clicked, after it is clicked create a timeout event that then changes that css property back

I have started this at line 66, but I am not quite sure how to handle the changing back property. I also need to swing the mallet 180 degree, which I guess is the same way, maybe I need to use step function, but I am not sure?

My code so far is http://codepen.io/AleksPoposki/pen/NRZRZb

Any help will be appreciated.

Avatar of undefined
Last Comment
APD Toronto

8/22/2022 - Mon