curji

1.0.2Β β€’Β PublicΒ β€’Β Published

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

Readme

Keywords

Package Sidebar

Install

npm i curji

Weekly Downloads

3

Version

1.0.2

License

MIT

Last publish

Collaborators

  • jmoxey