Skip to content

Instantly share code, notes, and snippets.

@greystate
Created September 18, 2020 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greystate/48ae23a69fa9ecfd6a433ff9a6e75041 to your computer and use it in GitHub Desktop.
Save greystate/48ae23a69fa9ecfd6a433ff9a6e75041 to your computer and use it in GitHub Desktop.
SVG test
/**
* 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; }
}
<!-- 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>
{"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