I am looking to add a redirection feature to my website using the href provided in the code by jQuery. This will be done after playing an animation for better user experience.
$(document).ready(function(){
$("a").click(function(event){
event.preventDefault();
$('.preload').addClass('preload-loading')
setTimeout(function(){
url = location.href;
$( location ).attr("href", url); <<-- I INTEND TO REDIRECT TO THE LINK SPECIFIED IN THE HREF ATTRIBUTE
}, 500);
});
});