1.0.2 • Published 7 years ago

curji v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

Curji 🐭

Turn your website's cursor into an emoji 🙊

Inspiration

Public Announcement: It's possible to set an emoji as the browser cursor.

Examples

Usage

Minimal

<html>
  <head>
    <script src="https://unpkg.com/curji@1.0.1/umd/curji.min.js"></script>
  </head>
  <body>
    Hello world
    <script>
      curji('😀')
    </script>
  </body>
</html>

With modules

Install curji:

npm i curji

Usage:

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

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.0

7 years ago