Last active
August 6, 2022 22:38
-
-
Save l-portet/393fa41b475c7021ea71775c9fee22d7 to your computer and use it in GitHub Desktop.
SCSS mixin to use an emoji as a cursor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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