changing animation timing function