mikesprague / emojicon

Cloudflare Worker that takes a standard unicode emoji as a path parameter and returns it as an SVG for use in favicon tags or CSS cursors

Home Page:https://mikesprague.github.io/emojicon/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

emojicon

Deploy Cloudflare Worker

About

Cloudflare Worker that takes a standard unicode emoji as a path parameter and returns it as an SVG for use in favicon tags or CSS cursors

NOTE: πŸ’―% borrowed from https://fav.farm/, all credit goes to the author for the concept

Usage

A single Unicode emoji should be passed as a path parameter to the Worker URL

Favicons

Use as the href attribute

<link rel="icon" class="favicon" href="https://emojicon.m5ls5e.workers.dev/😻">
<link rel="icon" class="favicon" href="https://emojicon.m5ls5e.workers.dev/πŸ”">
<link rel="icon" class="favicon" href="https://emojicon.m5ls5e.workers.dev/🐦">
<link rel="icon" class="favicon" href="https://emojicon.m5ls5e.workers.dev/πŸ‘Ύ">
<link rel="icon" class="favicon" href="https://emojicon.m5ls5e.workers.dev/πŸš€">

Custom Cursors (via CSS)

Use as a url() value of the cursor property

body {
  cursor: url('https://emojicon.m5ls5e.workers.dev/😝') 15 0, auto;
}
.class-name {
  cursor: url('https://emojicon.m5ls5e.workers.dev/πŸ™…') 15 0, auto;
}

Demo

https://mikesprague.github.io/emojicon/

Deploy Your Own

Use the following button to get started deploying your own version to Cloudflare

Deploy to Cloudflare Workers

About

Cloudflare Worker that takes a standard unicode emoji as a path parameter and returns it as an SVG for use in favicon tags or CSS cursors

https://mikesprague.github.io/emojicon/

License:MIT License


Languages

Language:JavaScript 100.0%