Scrolling subtitle special effects

there is such a requirement in a project: multiple messages to be pushed should be scrolled and played from left to right on the page, which could have been achieved before < marquee >, but this tag has been discarded in html5, so what should be used to achieve this function now? how to implement it with javascript? or is there a recommended demo, asking for help? thank you

.
Oct.20,2021

javascript
two things.
<!doctype html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />            
    <title></title>
    <style>
        -sharpbox{
            width: 300px;
            height: 50px;
            overflow: hidden;
            position: relative;
        }
        -sharpp{
            width: 1000px;
            position: absolute;
            top: 0;
            left: 0;
        }
    </style>
    
    
</head>
 <body>
        <!--div-->
    <div id="box">
             <p id="p">

</div> <script type="text/javascript"> var sum = 0; setInterval(function(){ document.getElementById("p").style.left = -(sum + 1) +"px" sum = sum + 2; },200); </script> </body> </html>
Menu