1. First write the two most commonly used and simple scrolling codes The codes are as follows:
Horizontal scrolling:
Vertical scrolling:
2. Smooth and uninterrupted scrolling
/* stop() start() cannot be used with The calling ID is in the same container. If the container does not have a default height, the height must be specified*/
3 There is stay scrolling
Code example: