Site Notice
hello, world
Difference between revisions of "Svg loading"
From Project-EPB Commons
([InPageEdit] 没有编辑摘要) |
([InPageEdit] 没有编辑摘要) |
||
Line 1: | Line 1: | ||
<html> | <html> | ||
− | <svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="svgspinner" height="52px" width="52px"> | + | <svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="svgspinner fandom-style" height="52px" width="52px"> |
<g class="spingroup" transform="translate(26,26)"> | <g class="spingroup" transform="translate(26,26)"> | ||
<circle class="spincircle" r="20" stroke-width="6" stroke="#33a0fb" fill="none"></circle> | <circle class="spincircle" r="20" stroke-width="6" stroke="#33a0fb" fill="none"></circle> | ||
Line 9: | Line 9: | ||
stroke-dasharray: 126; | stroke-dasharray: 126; | ||
stroke-linecap: round; | stroke-linecap: round; | ||
+ | } | ||
+ | .svgspinner.fandom-style .spincircle { | ||
+ | fill: #888488 !important; | ||
} | } | ||
@keyframes loading-circle { | @keyframes loading-circle { |
Revision as of 10:16, 3 December 2019
<html> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="svgspinner fandom-style" height="52px" width="52px"> <g class="spingroup" transform="translate(26,26)"> <circle class="spincircle" r="20" stroke-width="6" stroke="#33a0fb" fill="none"></circle> </g> <style> .svgspinner .spincircle {
animation: loading-circle 2s infinite linear; stroke-dasharray: 126; stroke-linecap: round;
} .svgspinner.fandom-style .spincircle {
fill: #888488 !important;
} @keyframes loading-circle {
0% { transform: rotate(0deg); stroke-dashoffset: 126; } 50% { stroke-dashoffset: 0; } 100% { transform: rotate(1080deg); stroke-dashoffset: 126; }
} </style> </svg> </html>