JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" maxlength="16" id="i1">
CSS
#i1 {
width:250px;
text-indent:0px;
}
JavaScript
$("#i1").keydown(function () {
if ($("#i1").val().length == 16) {
$("#i1").animate({
textIndent: '-=200'
},3000);
}
});