Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

🖱️Fancy cursor dot

License

NotificationsYou must be signed in to change notification settings

gaoryrt/cursor-dot

Repository files navigation

A vanilla JavaScript library which creates customizable, interactive cursor effects when hovering over certain elements.

Say Thanks!

English |简体中文

Installation 🏗️

A: yarn or npm

$ yarn add cursor-dot

or

npm i cursor-dot

then you can:

importcurDotfrom'cursor-dot'

in your js files.

B: usewindow.curDot.min.js file

Downloaddist/window.curDot.min.js file into your project, and in your html file:

<scriptsrc="path/to/your/window.curDot.min.js"></script>

then you can usewindow.curDot

Usage 🍹

constcursor=curDot()// or, set as you want// cursor({//   zIndex: 2,//   diameter: 80,//   borderWidth: 1,//   borderColor: 'transparent',//   easing: 4,//   background: '#ddd'// })

cursor.over('span.selector',{borderColor:'rgba(255,255,255,.38)',broderWidth:2})cursor.over($('El'),{scale:.5,background:'#fff'})

[8]ページ先頭

©2009-2025 Movatter.jp