Zero-dependency
No third-party libraries are required; all functionality is implemented internally, minimizing project complexity.
customizable and easy to use.
npm install cursorwith-ts
pnpm add cursorwith-ts
import { CreateCursorWith } from 'cursorwith-ts';
// create a cursorwith instance
const cw = new CreateCursorWith({
style: {
radius: 10,
color: 'rgba(0,0,0,0.1)',
borderWidth: 1,
borderColor: '#000000'
},
follow: {
type: 'time',
timeRatio: 0.04
},
})
Then you will get a following circle. ☺️
MIT License
Start using cursorwith to make your website more vivid and interesting.