JSFiddle - React, Tailwind, and code Playground
by kyong
HTML
<p>
<input type="text" /> <span>focus fire</span>
</p>
<p>
<input type="password" /> <span>focus fire</span>
</p>
JavaScript
$('input').focus(function(){
$(this).next("span").css('display', 'inline').fadeOut(1000);
$(this).css('background-color', 'yellow');
});
$('input).blur(function(){
$(this).css('background-color', '#fff');
});