Fixed animation on click on button for loading effect