https://github.com/solstice23/osu-cursor
✨ osu!lazer 样式的前端自定义光标 / osu!lazer style custom cursor for web
https://github.com/solstice23/osu-cursor
Last synced: over 1 year ago
JSON representation
✨ osu!lazer 样式的前端自定义光标 / osu!lazer style custom cursor for web
- Host: GitHub
- URL: https://github.com/solstice23/osu-cursor
- Owner: solstice23
- License: mit
- Created: 2022-02-10T12:46:54.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-02T13:58:11.000Z (almost 3 years ago)
- Last Synced: 2025-04-22T14:07:15.908Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://solstice23.github.io/osu-cursor/demo/
- Size: 1.53 MB
- Stars: 24
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# osu-cursor
osu!lazer 样式的前端自定义光标
## Demo
[Demo](https://solstice23.github.io/osu-cursor/demo/)

## 开始
### 引入
```html
```
所有资源文件已打包于 JS 中,只需要引入 JS。
### 初始化
```js
var cursor = new osuCursor();
```
## 函数及参数
### `osuCursor(options)`
| 参数名 | 类型 | 默认值 | 备注 |
|:------:|:----:|:------:|--------------------|
| rotate | bool | true | 拖动时光标是否旋转 |
### `osuCursor.stop()`
停止显示自定义光标。
### `osuCursor.init()`
初始化(重新显示)自定义光标。
## 版权
光标图片来自 [ppy/osu-resources](https://github.com/ppy/osu-resources)。