Home >Web Front-end >JS Tutorial >Javascript implements scrolling effect code organization_javascript skills

Javascript implements scrolling effect code organization_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:32:031518browse
1. First write the two most commonly used and simple scrolling codes
The codes are as follows:
Horizontal scrolling:
Scroll subtitle content horizontally
Vertical scrolling:
Vertical Scroll text content
2. Smooth and uninterrupted scrolling
Copy code Code As follows:


/* 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:

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn