Since the marquee tag is used less and less now, most scrolling effects are implemented using javascript
The reason why marquee is abandoned is because marquee is a thing that seriously affects the user experience. If you put dozens of Compressing rows of content to a few scroll lines does help you compress the layout space, but have you ever thought that users may have to wait on your scroll for half a day because they want to read one or two lines of content? Take the scrolling aggregated text on the right side of the advertising text "BlogBeta Digital Engine p4 3.0 server only costs 6,999 yuan/year" at the top of the classic forum page as an example. Do you think this is a good user experience? Are the W3C experts less thoughtful than a bunch of ignorant kids? It’s a joke
The first method: use javascript to simulate marquee’s approach.
Source: NetEase Games