update animation by changing timing function