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

circle-follower

v9.0.0

Published

a simple mouse follower effect for your website.

Downloads

54

Readme

Circle Follower

一个简单优雅的鼠标跟随效果插件。【附赠平滑滚动插件】

鼠标跟随插件

使用方式

方式一:通过 script 标签直接引入

<script src="https://unpkg.com/circle-follower@latest/index.js"></script>
<script>
  // 创建实例
  const follower = new Follower({
    size: 30,
    borderColor: "#00c569",
    borderWidth: 2,
  });
</script>

方式二:在模块化项目中使用

npm install circle-follower
import Follower from "circle-follower";

// 创建实例
const follower = new Follower();

配置选项

创建实例时可以传入配置对象,所有配置项都是可选的:

const follower = new Follower({
  // 以下是默认值
  size: 30, // 圆环默认大小
  bgColor: "transparent", // 背景色
  borderColor: "#00c569", // 边框颜色
  borderWidth: 2, // 边框宽度
  backdropFilter: "", // 背景滤镜效果,例如:'blur(5px)'
  hoverSize: 60, // hover时圆环大小
  hoverBgColor: "rgba(0, 255, 0, 0.3)", // hover时背景色
  hoverBackdropFilter: "", // hover时的背景滤镜效果
  speed: 0.15, // 跟随速度(0-1之间)
});

配置项说明

| 参数 | 说明 | 类型 | 默认值 | | ------------------- | -------------------------------- | ------ | ---------------------- | | size | 圆环默认大小(像素) | Number | 30 | | bgColor | 背景色 | String | 'transparent' | | borderColor | 边框颜色 | String | '#00c569' | | borderWidth | 边框宽度(像素) | Number | 2 | | backdropFilter | 背景滤镜效果 | String | '' | | hoverSize | 鼠标悬停时圆环大小(像素) | Number | 60 | | hoverBgColor | 鼠标悬停时背景色 | String | 'rgba(0, 255, 0, 0.3)' | | hoverBackdropFilter | hover 时的背景滤镜效果 | String | '' | | speed | 跟随速度,范围 0-1,越大跟随越快 | Number | 0.15 |

实例方法

destroy()

销毁实例,移除事件监听和 DOM 元素:

const follower = new Follower();
// ... 使用一段时间后
follower.destroy(); // 销毁实例

平滑滚动插件【赠品】

使用方式

<script src="https://unpkg.com/circle-follower@latest/smoothScroller.js"></script>
<script>
  // 实例化平滑滚动插件
  new SmoothScroller({
    friction: 0.9,
    sensitivity: 0.12,
  });
</script>

Demo

License

MIT © JasonBai