Update animation function
Update css