JSFiddle - React, Tailwind, and code Playground

by George Batt

HTML

<div class="wrapper">
<a href='http://www.google.co.uk'>Anch</a>
</div>

JavaScript

$('a').click(function (e) {
        e.preventDefault();
        href = this.href;
        $('.wrapper').fadeOut(1000, function(){
                    console.log(href);
                    window.location = href;
        });
    });