Click-to-pause animation. Cleaner code.