troubleshooting Question

jQuery Time Off Event

Avatar of APD Toronto
APD TorontoFlag for Canada asked on
CSSjQueryJavaScript
20 Comments1 Solution149 ViewsLast Modified:
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.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 20 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 20 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros