Update animation code for ending the loading process.