Use JQuery. Get the URL from the <a>. Find out how to do a preventDefault(). Animate opacity on the body or container div. Call the complete function to redirect to whatever URL when the animation is complete. I'm not going to write the code for you. It's very simple, and the best way to learn is the figure it out. I've given you the necessary steps. If you can't come up with the code from some researching, then you're just wasting both our time.