
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
Marquee is a pure JavaScript seamless marquee plugin supporting infinite scrolling in four directions with pause-on-hover. It auto-disables if content fits the container. No dependencies, smooth and gapless.Marquee 是一个纯JavaScript无缝跑马灯插件,支持四个方向无限滚动和悬停暂停。内容
# Marquee Plugin 纯JavaScript跑马灯插件
## English
### Introduction
Marquee is a pure JavaScript gapless marquee scroller supporting four directions (left, right, up, down) with infinite loop and pause on hover functionality. It automatically disables scrolling if the content size does not exceed the container size.
### Features
- Supports horizontal and vertical scrolling
- Directions: left, right, up, down
- Infinite seamless loop without gaps
- Pause on mouse hover or touch
- Automatically disables if scrolling is not necessary
### Usage
1. Include the required HTML structure:
```html
<div class="marquee">
<div class="marquee__track">
<div class="marquee__item">Item 1</div>
<div class="marquee__item">Item 2</div>
<div class="marquee__item">Item 3</div>
</div>
</div>
const marquee = new Marquee('.marquee', {
direction: 'left', // 'left' | 'right' | 'up' | 'down'
speed: 60, // speed in pixels per second
pauseOnHover: true // pause when hovered or touched
});
pause() - pause scrollingresume() - resume scrollingrequestAnimationFrame and CSS transformsMarquee 是一个纯JavaScript无缝跑马灯插件,支持四个方向(左、右、上、下)无限循环滚动,并支持鼠标悬停暂停功能。当内容尺寸未超出容器时,自动禁用滚动。
<div class="marquee">
<div class="marquee__track">
<div class="marquee__item">项目 1</div>
<div class="marquee__item">项目 2</div>
<div class="marquee__item">项目 3</div>
</div>
</div>
const marquee = new Marquee('.marquee', {
direction: 'left', // 'left' | 'right' | 'up' | 'down'
speed: 60, // 滚动速度,单位:像素每秒
pauseOnHover: true // 鼠标悬停或触摸时暂停滚动
});
pause() - 暂停滚动resume() - 恢复滚动requestAnimationFrame和CSS3变换(transform)FAQs
Marquee is a pure JavaScript seamless marquee plugin supporting infinite scrolling in four directions with pause-on-hover. It auto-disables if content fits the container. No dependencies, smooth and gapless.Marquee 是一个纯JavaScript无缝跑马灯插件,支持四个方向无限滚动和悬停暂停。内容
We found that ax-marquee demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.