Created
April 14, 2019 10:37
-
-
Save ausi/15cff996b1773d25a16859b99319537d to your computer and use it in GitHub Desktop.
SVG cursors experiments
This file contains hidden or 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
/** | |
* SVG cursors experiments | |
*/ | |
html { | |
height: 100vh; | |
animation: test 0.01s infinite; | |
--image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="200" width="200" viewBox="0 0 100 100">\ | |
<style>@keyframes dance{to { transform: rotate(-10deg);}</style>\ | |
<text y="1em" style="font-size: 90px; animation: dance .5s infinite alternate">🦄</text></svg>'); | |
cursor: -webkit-image-set(var(--image) 2x), not-allowed; | |
} | |
@keyframes test { | |
to { | |
cursor: -webkit-image-set(var(--image) 2x), pointer; | |
} | |
} |
This file contains hidden or 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
// alert('Hello world!'); |
This file contains hidden or 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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment