When I click on an a
tag it changes a class and delays going to the href
location.
Then when you press on the back button (tried on safari and firefox) it returns with the class' "animated" and "bounceOutUp" but I want it to com back with the original class' "animated" and "bounceInDown"
$('a').click(function (e) {
e.preventDefault();
var goTo = this.getAttribute("href");
if ($(this).attr("href").length > 5) {
$("#logo").removeClass('animated bounceInDown');
$("#logo").addClass('animated bounceOutUp');
}
setTimeout(function () {
window.location = goTo;
}, 1000);
});