Have been building a javascript powered pairs game in spare time at work but now I’m having an issue where the timer seems to pause for a second while the card flip is transitioning, this leaves the final times a bit off. I’ve tried removing the setTimeout from the checkClass and hasWon functions, but it didn’t seem to help.
Added it to a JSfiddle here, padon the appearance but i couldn’t be bother to set up image hosting when it’s not really needed for this issue.
https://jsfiddle.net/gwesolo/de5z9mkd/
The timer will start once the first tile is clicked, the reset button works to reset the whole game and the submit/leaderboard is just for show.
Any insight on what’s happening here would be awesome!