Created
September 18, 2020 13:10
-
-
Save greystate/48ae23a69fa9ecfd6a433ff9a6e75041 to your computer and use it in GitHub Desktop.
SVG test
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 test | |
*/ | |
html { | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; | |
} | |
svg circle { | |
stroke: orange; | |
stroke-width: 2px; | |
r: 48px; | |
animation: pulsate 1s infinite alternate ease-in-out; | |
} | |
@keyframes pulsate { | |
from { stroke-width: 2px; r: 44px; } | |
to { stroke-width: 3px; r: 48px; } | |
} |
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 animation test --> | |
<svg width="100" height="100" viewBox="0 0 100 100"> | |
<circle cx="50" cy="50" r="48" fill="none" stroke="currentcolor" stroke-width="3" /> | |
</svg> |
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