I've been looking for solutions to similar problems, but none of them have worked for me.
Here's my issue: I have a few links in the header of my website (such as about, portfolio, etc.) and I have a JavaScript animation that triggers when an <a>
element is clicked. However, the page transitions too quickly for the animation to be visible. How can I delay the page transition for a few seconds until the animation is complete? Here's an example: http://codepen.io/anon/pen/zrXrXM. Can anyone help me figure out how to pause the transition until the animation finishes?