npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@chaos-design/marquee

v0.0.1-beta.1

Published

react marquee

Readme

@chaos-design/marquee

跑马灯

用法

import Marquee from '@chaos-design/marquee';

const App = () => (
  <Marquee>
    <MarqueeContent />
    <MarqueeContent />
    <MarqueeContent />
  </Marquee>
);

export default App;

API

| 属性 | 类型 | Default | 描述 | | :-------------------- | :---------------------------------- | :------- | :----------------------------------------------------------------------------------------------------------------- | | style | CSSProperties | {} | 容器 div 的内联样式 | | className | string | "" | 容器 divclassName | | itemClassName | string | "" | 样式容器中子内容父容器的 className | | autoFill | boolean | false | 在重复滚动时是否自动填充跑马灯内容 | | play | boolean | true | 是否开始或者暂停跑马灯 | | pauseOnHover | boolean | false | hover 跑马灯是否暂停 | | pauseOnClick | boolean | false | click 跑马灯是否暂停 | | direction | "left" \| "right"\| "up"\| "down" | "left" | 跑马灯滑动的方向 警告: 垂直跑马灯目前处于实验阶段,可能存在错误,需要交换设置跑马灯的高度和宽度。 | | speed | number | 50 | 跑马灯速度,单位是px/s | | delay | number | 0 | 渲染后延迟动画的持续时间,单位是 s | | loop | number | 0 | 循环的次数,默认是无限滚动 | | gradient | boolean | false | 是否显示渐变或不显示 | | gradientColor | string | white | 渐变的颜色 | | gradientWidth | number \| string | 200 | 两侧渐变的宽度 | | onFinish | () => void | null | 当跑马灯完成滚动并停止时的回调。仅在循环非零时调用。 | | onIterationComplete | () => void | null | 当跑马灯完成一个循环时的回调。如果达到最大循环次数,则不会调用 (请使用 onFinish 代替)。 | | onMount | (props: MarqueeInstance) => void | null | 当跑马灯完成挂载后被调用。如果需要的话,可以用来重新计算页面大小。 | | children | ReactNode | null | 跑马灯的内容 |