timer used to stop animation