Simmons game color blink effect

i am trying to build Simmons game were i want to blink background color only once per my call i tried a lot can some one provide a function that can blink element background only once per function call in JavaScript or j query

Because it would depend a lot how you have your game designed, it would be helpful if we had a link to your code. Then, we could make suggestions based on your existing code logic.