JSFiddle - React, Tailwind, and code Playground
by ibike365
HTML
<div id="container">This is some text</div>
<button id="click">Click</button>
JavaScript
function moveText() {
var curTextIndent = $("#container").attr("text-indent");
var newTextIndent = curTextIndent - 1;
$("#container").css("text-indent", newTextIndent + "px");
}
$("#click").click(function() {
setTimeout("moveText()", 1000);
});