JSFiddle - React, Tailwind, and code Playground

by Thornton_Fernbacher

HTML

<!doctype html>
<html>
<head>
<title>Algorithms</title>
<script type = "text/javascript">
function move_paragraph() {
    next = current + "px";
    current += 1;
    if (current > 300) {
        current = 0;
    }
    paragraph.style.left = next;
    var rate = 18;
    setTimeout(move_paragraph, rate);
}
function init() {
    paragraph = document.getElementById("original");
    paragraph.style.position = "absolute";
    current = 0;
    move_paragraph();
}
</script>
<link href="style.css" rel="stylesheet" type="text/css">   
</head>

<body class="Algbody" onload="init();">

<p id = "original">This is a text scroll</p>
<br>
<br>

</body>
</html>