Skip to content

Instantly share code, notes, and snippets.

@l-portet
Last active August 6, 2022 22:38
Show Gist options
  • Save l-portet/393fa41b475c7021ea71775c9fee22d7 to your computer and use it in GitHub Desktop.
Save l-portet/393fa41b475c7021ea71775c9fee22d7 to your computer and use it in GitHub Desktop.
SCSS mixin to use an emoji as a cursor
@mixin cursor-emoji($emoji) {
cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='48' viewport='0 0 100 100' style='fill:black;font-size:24px;'><text y='50%'>"+$emoji+'</text></svg>')
16 0,
auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment