Skip to content

CURSORWITH-TS一个小巧、高性能、跨框架的光标跟随效果。

可定制且易于使用。

标志

 

🚀 快速开始

安装

sh
npm install cursorwith-ts
sh
pnpm add cursorwith-ts

基本用法

ts
import { CreateCursorWith } from 'cursorwith-ts/core';
import { follow } from 'cursorwith-ts/use';
const container = document.getElementById('app');
// 创建一个 cursorwith 实例
const cw = new CreateCursorWith({
    style: {
      radius: 20,
      color: '#ddddddaa',
    },
    container,
  })
// 使用 follow 插件
cw.use(follow({ type: 'time' }));

之后你将看到一个跟随移动的圆形☺️。

📄 许可

MIT License


 

开始使用 cursorwith,让你的网页更生动有趣吧。

基于 MIT 许可发布。