Site Notice

hello, world

Difference between revisions of "Svg loading"

From Project-EPB Commons
([InPageEdit] 没有编辑摘要)
([InPageEdit] 没有编辑摘要)
 
(47 intermediate revisions by the same user not shown)
Line 1: Line 1:
<html>
+
There are a lot of loading animations that look great. But it is difficult to insert them into wiki article. And GIF picture quality is often poor. So I made these SVG files.
<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)">
+
Most of them were not designed by publisher, I just imitated their effects using SVG. So if some of them violate copyright, please remind publisher to delete them.
<circle data-status="doMinus" r="20" stroke="{{{color|#33a0fb}}}" stroke-width="6" stroke-dasharray="125 1000" fill="transparent" cx="0" cy="0"></circle>
+
 
</g>
+
== Fandom design ==
<style>
+
Imitated by: [[User:机智的小鱼君]]
.svgspinner circle {
+
<div style="text-align:center;margin:0 auto;"><img src="https://vignette.wikia.nocookie.net/dftest/images/c/c0/Loading.svg"><br/>What's that! Animated SVG!! COOOOL!!!</div>
  animation: circle-spin 1.8s infinite linear;
+
* <nowiki>https://vignette.wikia.nocookie.net/dftest/images/c/c0/Loading.svg</nowiki>
  transition: stroke-dasharray .2s linear;
+
 
}
+
Copyright Fandom, inc<ref>https://fandomdesignsystem.com/components/progress-indicators</ref>
@keyframes circle-spin {
+
 
  from {
+
== Microsoft style ==
    transform: rotate(0deg);
+
These 3 Microsoft style SVG files were imitated by: [[User:机智的小鱼君]]
  }
+
<div style="text-align:center;margin:0 auto;"><img src="https://vignette.wikia.nocookie.net/dftest/images/8/8c/Ms-loading-spinner.svg"><br/>Normal</div>
  to {
+
* <nowiki>https://vignette.wikia.nocookie.net/dftest/images/8/8c/Ms-loading-spinner.svg</nowiki>
    transform: rotate(720deg);
+
 
  }
+
<div style="background:#000;color:#fff;text-align:center;width:45px;margin:0 auto;border-radius:2px;padding: 4px;"><img src="https://vignette.wikia.nocookie.net/dftest/images/c/c3/Ms-loading-spinner-white.svg"><br/>White</div>
}
+
* <nowiki>https://vignette.wikia.nocookie.net/dftest/images/c/c3/Ms-loading-spinner-white.svg</nowiki>
</style>
+
 
<script>
+
<div style="text-align:center;margin:0 auto;"><img src="https://vignette.wikia.nocookie.net/dftest/images/0/07/Ms-loading-spinner-black.svg"><br/>Black</div>
var startSpin = setInterval(function () {
+
* <nowiki>https://vignette.wikia.nocookie.net/dftest/images/0/07/Ms-loading-spinner-black.svg</nowiki>
  var $this = $('.svgspinner circle'),
+
 
    dash = $this.attr('stroke-dasharray'),
+
Copyright Microsoft, corp
    dash1 = Number(dash.split(' ')[0]),
+
 
    dash2;
+
== Google Material ==
  if (dash1 > 126) {
+
'''TBD'''
    $this.attr('data-status', 'doMinus');
+
 
  } else if (dash1 < 11) {
+
== References ==
    $this.attr('data-status', 'doPlus');
+
<references/>
  }
 
  if ($this.attr('data-status') === 'doMinus') {
 
    dash2 = dash1 - 10;
 
    $this.attr('stroke-dasharray', dash2 + ' 1000');
 
  } else if ($this.attr('data-status') === 'doPlus') {
 
    dash2 = dash1 + 10;
 
    $this.attr('stroke-dasharray', dash2 + ' 1000');
 
  }
 
}, 200);
 
</script>
 
</svg>
 
</html>
 

Latest revision as of 04:52, 16 December 2019

There are a lot of loading animations that look great. But it is difficult to insert them into wiki article. And GIF picture quality is often poor. So I made these SVG files.

Most of them were not designed by publisher, I just imitated their effects using SVG. So if some of them violate copyright, please remind publisher to delete them.

Fandom design

Imitated by: User:机智的小鱼君

<img src="https://vignette.wikia.nocookie.net/dftest/images/c/c0/Loading.svg">
What's that! Animated SVG!! COOOOL!!!
  • https://vignette.wikia.nocookie.net/dftest/images/c/c0/Loading.svg

Copyright Fandom, inc[1]

Microsoft style

These 3 Microsoft style SVG files were imitated by: User:机智的小鱼君

  • https://vignette.wikia.nocookie.net/dftest/images/8/8c/Ms-loading-spinner.svg
  • https://vignette.wikia.nocookie.net/dftest/images/c/c3/Ms-loading-spinner-white.svg
  • https://vignette.wikia.nocookie.net/dftest/images/0/07/Ms-loading-spinner-black.svg

Copyright Microsoft, corp

Google Material

TBD

References