changed timing function on button transition