1.0.2 • Published 7 years ago
curji v1.0.2
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
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