I want to have a slotmachine-like animation when you hover over the image. I also want it to revert to the starting state when you leave the area. I managed to stop the animation when you leave and start when you hover but there are two problems.
- The animation overlaps each other because of the hover constantly activating it.
- The animation doesn't end at the starting position. (I don't know how to do that.)
My knowledge is total newb level but here's what I got so far with bits of code here and there.I don't know how all of this works.
Please help me out! Thanks!
jsfiddle.net/Bn7Kq/63/