Marquee resets the first time when text is dynamically loaded from API
I’m working on this marquee in my angular application. I am getting data by calling an API and showing that text in marquee, but when the page reloads and the marquee starts from right to left, as it reaches the end of div, the marquee kind of resets and restarts from right instead of giving an infinite loop. This only happens the first time after page reloads then it works fine. Also it only happens when bringing text through API, if I hard code some text in marquee tag, it works fine