JSFiddle - React, Tailwind, and code Playground

HTML

<marquee class="tracks_marquee" behavior="alternate" scrollamount="0"  >
  some text here
</marquee>

JavaScript

$(document).ready(function()
                  {
                      
                      
                      $(".tracks_marquee").hover(function()
                                   {
                                       $(this).attr("scrollamount","1");
                                       $(this).start();
                                       
                                   },
                                   function()
                                   {
                                       $(this).attr("scrollamount","0");                                             $(this).stop();
                                   })
                      
                      
                  })