Site Notice

hello, world

Difference between revisions of "Svg loading"

From Project-EPB Commons
([InPageEdit] 没有编辑摘要)
([InPageEdit] 没有编辑摘要)
Line 1: Line 1:
<img src="https://vignette.wikia.nocookie.net/dftest/images/c/c0/Loading.svg"/>
+
<img src="https://vignette.wikia.nocookie.net/dftest/images/c/c0/Loading.svg" style="width:1000px"/>
 
{{clear}}
 
{{clear}}
 
<html>
 
<html>
Line 8: Line 8:
 
<style>
 
<style>
 
.svgspinner circle {
 
.svgspinner circle {
   animation: circle-spin 3s infinite linear;
+
   animation: circle-spin 4s infinite linear;
 
   stroke-dasharray: 126;
 
   stroke-dasharray: 126;
 
   stroke-dashoffset: 126;
 
   stroke-dashoffset: 126;
 +
  stroke-linecap: round;
 
}
 
}
 
@keyframes circle-spin {
 
@keyframes circle-spin {

Revision as of 03:02, 3 December 2019

<img src="https://vignette.wikia.nocookie.net/dftest/images/c/c0/Loading.svg" style="width:1000px"/>

<html> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="svgspinner" width="52px" height="52px"> <g id="group" style="" transform="translate(26,26)"> <circle data-status="doMinus" r="20" stroke="#33a0fb" stroke-width="6" fill="transparent" cx="0" cy="0"></circle> </g> <style> .svgspinner circle {

 animation: circle-spin 4s infinite linear;
 stroke-dasharray: 126;
 stroke-dashoffset: 126;
 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>