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