The title says it all, the .gif that replaces another .gif onClick repeats itself upon clicking. Here is the code;