Turn your website's cursor into an emoji π
Public Announcement: It's possible to set an emoji as the browser cursor.
- Sindre Sorhus via Twitter
<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>
Install curji
:
npm i curji
Usage:
import curji from 'curji';
curji('π');
// or with a selector
curji('π', { selector: '.container > #main' })
Type: string
The emoji you want your cursor to be.
Type: object
Type: string
Example: .container > #main
Selector for the element to apply the emoji cursor to.
MIT Β© jxom