Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jxom/curji
Turn your website's cursor into an emoji 🙊
https://github.com/jxom/curji
Last synced: about 1 month ago
JSON representation
Turn your website's cursor into an emoji 🙊
- Host: GitHub
- URL: https://github.com/jxom/curji
- Owner: jxom
- License: mit
- Created: 2018-01-28T03:58:29.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-18T00:44:05.000Z (over 5 years ago)
- Last Synced: 2024-04-20T12:53:59.501Z (10 months ago)
- Language: JavaScript
- Homepage: https://jsfiddle.net/jxom/73egpjny/
- Size: 50.8 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-repos - jxom/curji - Turn your website's cursor into an emoji 🙊 (JavaScript)
README
# Curji 🐭
> Turn your website's cursor into an emoji 🙊
## Inspiration
> Public Announcement: It's possible to set an emoji as the browser cursor.
- Sindre Sorhus via [Twitter](https://twitter.com/sindresorhus/status/955878567723847680)## Examples
- Simple: https://jsfiddle.net/jxom/73egpjny/
- React: https://codesandbox.io/s/2zxy379rny## Usage
#### Minimal
```html
Hello world
curji('😀')
```
#### With modules
Install `curji`:
```
npm i curji
```Usage:
```javascript
import curji from 'curji';curji('😀');
// or with a selector
curji('😀', { selector: '.container > #main' })
```## API
### curji(emoji, options)
#### emoji
Type: `string`
The emoji you want your cursor to be.
#### options
Type: `object`
##### selector
Type: `string`
Example: `.container > #main`Selector for the element to apply the emoji cursor to.
## License
MIT © [jxom](http://jxom.io)