jxom / curji

Turn your website's cursor into an emoji πŸ™Š

Home Page:https://jsfiddle.net/jxom/73egpjny/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.2/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

About

Turn your website's cursor into an emoji πŸ™Š

https://jsfiddle.net/jxom/73egpjny/

License:MIT License


Languages

Language:JavaScript 100.0%