Adjusted animation to compensate custom selection border width