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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mc-arrow

v1.0.6

Published

```$xslt 指定元素滚动到窗口指定位置时固定在指定位置 ```

Readme

MC-FIXED

指定元素滚动到窗口指定位置时固定在指定位置

索引

演示

http://www.junbo.name/plugins/mc-arrow

开始

下载项目:

npm i mc-arrow

参数

  @param  param          {Object}      入参
  @param  param.el       {Element}     需要监听的DOM节点
  @param  param.wrap     {Element}     动态参考元素 (选填,如不填写则为其父元素)
  @param  param.top      {String}      偏移量值 (选填,默认为0)
  @param  param.on       {Object}      回调集 (选填)
  @param  param.on.up    {Function}    向上时
  @param  param.on.down  {Function}    向下时

示例

前置条件

// 使用此插件,必须在需要固定的元素外面包一层容器,且此容器尺寸与位置必须和固定元素一样大小或不设置任何尺寸与位置属性。
<div>
  <div id="el"></div>
</div>
// 楼层埋点插件
import McArrow from 'mc-arrow';

// 滚动到500PX时显示按钮。
new McArrow({
  offset: 500
});

版本

v1.0.3
1. 非核心更新,新增文件到NPM
v1.0.2
1. 修改入参数默认值可以为空或不入参
v1.0.1
1. requestAnimationFrame添加兼容性前缀
v1.0.0
1. 此版本完成了核心功能。

反馈

如果您在使用中遇到问题,请通过以下方式联系我。
QQ: 860065202
EMAIL: [email protected]