1
0

st-back.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <div class="st-back">
  3. <svg viewBox="0 0 872 872" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
  4. <defs>
  5. <polygon id="sjx-svg-def" points="13 0 26 22 0 22" fill="#F4DF6A"></polygon>
  6. <rect id="cjx-svg-def" x="0" y="0" width="94" height="12" fill="#F4DF6A"></rect>
  7. </defs>
  8. <circle cx="436" cy="436" r="430" stroke="#2F3647" stroke-width="2" fill="none" stroke-dasharray="15,10">
  9. <animateTransform
  10. attributeName="transform"
  11. attributeType="XML"
  12. type="rotate"
  13. from="359 436 436"
  14. to="0 436 436"
  15. dur="100s"
  16. repeatCount="indefinite"
  17. />
  18. </circle>
  19. <circle cx="436" cy="436" r="270" stroke="#2F3647" stroke-width="70" fill="none" stroke-dasharray="500,50">
  20. <animateTransform
  21. attributeName="transform"
  22. attributeType="XML"
  23. type="rotate"
  24. from="0 436 436"
  25. to="359 436 436"
  26. dur="50s"
  27. repeatCount="indefinite"
  28. />
  29. </circle>
  30. <circle cx="436" cy="436" r="350" stroke="#2F3647" stroke-width="2" fill="none"></circle>
  31. <use xlink:href="#sjx-svg-def" x="424" y="815">
  32. <animateTransform
  33. attributeName="transform"
  34. attributeType="XML"
  35. type="rotate"
  36. from="0 436 436"
  37. to="359 436 436"
  38. dur="30s"
  39. repeatCount="indefinite"
  40. />
  41. </use>
  42. <use xlink:href="#sjx-svg-def" x="75" y="245">
  43. <animateTransform
  44. attributeName="transform"
  45. attributeType="XML"
  46. type="rotate"
  47. from="0 436 436"
  48. to="359 436 436"
  49. dur="30s"
  50. repeatCount="indefinite"
  51. />
  52. </use>
  53. <use xlink:href="#sjx-svg-def" x="775" y="245">
  54. <animateTransform
  55. attributeName="transform"
  56. attributeType="XML"
  57. type="rotate"
  58. from="0 436 436"
  59. to="359 436 436"
  60. dur="30s"
  61. repeatCount="indefinite"
  62. />
  63. </use>
  64. <use xlink:href="#cjx-svg-def" x="390" y="778">
  65. <animateTransform
  66. attributeName="transform"
  67. attributeType="XML"
  68. type="rotate"
  69. from="359 436 436"
  70. to="0 436 436"
  71. dur="30s"
  72. repeatCount="indefinite"
  73. />
  74. </use>
  75. <use xlink:href="#cjx-svg-def" x="390" y="778">
  76. <animateTransform
  77. attributeName="transform"
  78. attributeType="XML"
  79. type="rotate"
  80. from="135 436 436"
  81. to="-224 436 436"
  82. dur="30s"
  83. repeatCount="indefinite"
  84. />
  85. </use>
  86. <use xlink:href="#cjx-svg-def" x="390" y="778">
  87. <animateTransform
  88. attributeName="transform"
  89. attributeType="XML"
  90. type="rotate"
  91. from="225 436 436"
  92. to="-134 436 436"
  93. dur="30s"
  94. repeatCount="indefinite"
  95. />
  96. </use>
  97. </svg>
  98. </div>
  99. </template>
  100. <script>
  101. export default {
  102. // 名称
  103. name: "st-back",
  104. // 使用组件
  105. components: {},
  106. // 数据
  107. data() {
  108. return {};
  109. },
  110. // 函数
  111. methods: {},
  112. // 生命周期钩子
  113. beforeCreate() {
  114. // 创建前
  115. },
  116. created() {
  117. // 创建后
  118. },
  119. beforeMount() {
  120. // 渲染前
  121. },
  122. mounted() {
  123. // 渲染后
  124. },
  125. beforeUpdate() {
  126. // 数据更新前
  127. },
  128. updated() {
  129. // 数据更新后
  130. },
  131. };
  132. </script>
  133. <style lang="less">
  134. .st-back {
  135. width: 872px;
  136. height: 872px;
  137. position: fixed;
  138. z-index: 0;
  139. // left: calc(50% - 436px - 112px);
  140. left: calc(50% - 436px);
  141. top: calc(50% - 436px);
  142. transform: rotateX(45deg);
  143. svg {
  144. width: 872px;
  145. height: 872px;
  146. }
  147. }
  148. </style>