Hi @ankonaskiff17 ,
there are very simple answers to both of your questions ;-)
Imagine the horizontal ticker like one long strip of text, which just moves/flies over your screen from the outer right to the outer left position:
|<<- Stock1 - Stock2 - Stock3 - Stock4 |
Now, if Stock4 reaches the left corner of your screen, there would be a gap on the screen to its right.
That’s why there is a second “clone” of the ticker that fills that gap and moves right after the first one. Once the first one completely left the screen, it lines up again after the first one.
With that, you get an infinite loop.
Jast is built with TypeScript. What you see, is a minified and uglyfied, transpiler generated version of the module. If you are interested in the source code, just check the files in the /src folder.
Please feel free to submit a Pull Request, if you found a way to avoid that the module runs out of the screen. I think a minor css change should fix that.