JSFiddle - React, Tailwind, and code Playground

HTML

<strong><h1><marquee id="scroller-0" scrollamount="38"></marquee></h1></strong>
<strong><h1><marquee id="scroller-1" scrollamount="38">test</marquee></h1></strong>
<strong><h1><marquee id="scroller-2" scrollamount="38">test</marquee></h1></strong>
<strong><h1><marquee id="scroller-3" scrollamount="38">test</marquee></h1></strong>
<strong><h1><marquee id="scroller-4" scrollamount="38">test</marquee></h1></strong>
<strong><h1><marquee id="scroller-5" scrollamount="38">test</marquee></h1></strong>
<strong><h1><marquee id="scroller-6" scrollamount="38">test</marquee></h1></strong>
<strong><h1><marquee id="scroller-7" scrollamount="38">test</marquee></h1></strong>
<strong><h1><marquee id="scroller-8" scrollamount="38">test</marquee></h1></strong>

JavaScript

var trending_cat = [
        "Lotto Rapid Running Shoes",
        "Paradise (English) (Paperback)",
        "Canon EOS 700D (Body with 18-135 mm Lens) DSLR Camera",
        "Huetrap Graphic Print Men's Round Neck T-Shirt",
        "Vincent chase vc 5158 silver silver reflector mirror ao12jo aviator sunglasses",
        "Orka XL Bean Bag With Bean Filling",
        'HP Compaq 15-s103TX Notebook (4th Gen Ci3 4GB 1TB Free DOS 2GB Graph) (K8T82PA)',
        'Moto G (2nd Generation) White, 16 GB',
        'Fastrack 9827PP01 Hip Hop Analog Watch - For Women',
];
    
function setMarquee(){
    for (var i=0; i<9; i++) {
        document.getElementById("scroller-"+i).innerText = trending_cat[i];
    }
}

setMarquee();