Run the Click function after an Effect
<p>I have a "login" button with a "click" function that redirects the user to another page. </p>

<p>But the thing is that after the user clicks on the "login" button a "fade" animation should take place, before the user is redirected to other page, and that is not happening, i.e. the user cant see the animation since he/she is redirected immediately to the other page and this doesn't look good =(</p>

<p>How can I fix this?</p>

<p>Thank you!</p>
