JSFiddle - React, Tailwind, and code Playground
HTML
<a href="#" class="link">BLARG</a>
CSS
a {
font-size: 16px;
text-decoration: none;
color: black
}
a.active {
font-size: 30px;
}
JavaScript
$(document).ready(function() {
$('.link').click(function() {
$(this).addClass('active');
setTimeout(function(){
$('.active').removeClass('active');
},2000);
});
});