Check out example codes for "scrolling text html". It will help you in understanding the concepts better.

Code Example 1

<marquee behavior="scroll" direction="left"><p style="color:blue"><font size="+7">Scrolls from right to left.</marquee></p>

Learn ReactJs, React Native from akashmittal.com