Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 🙊

Awesome Lists containing this project

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)