[common] removed svg animation in loading mask image
This commit is contained in:
parent
dc696c5afb
commit
7b2020a44e
|
@ -78,8 +78,8 @@ define([
|
||||||
|
|
||||||
template: _.template([
|
template: _.template([
|
||||||
'<div id="<%= id %>" class="asc-loadmask-body <%= cls %>" role="presentation" tabindex="-1">',
|
'<div id="<%= id %>" class="asc-loadmask-body <%= cls %>" role="presentation" tabindex="-1">',
|
||||||
'<div class="asc-loadmask-image"></div>',
|
'<i id="loadmask-spinner" class="asc-loadmask-image"></i>',
|
||||||
'<div class="asc-loadmask-title"><%= title %></div>',
|
'<div class="asc-loadmask-title"><%= title %></div>',
|
||||||
'</div>'
|
'</div>'
|
||||||
].join('')),
|
].join('')),
|
||||||
|
|
||||||
|
|
|
@ -3,16 +3,12 @@
|
||||||
use {display: none}
|
use {display: none}
|
||||||
use:target {display: inline}
|
use:target {display: inline}
|
||||||
</style>
|
</style>
|
||||||
<symbol id="middle1" viewBox="0 0 28 28">
|
<symbol id="symb-middle" viewBox="0 0 28 28">
|
||||||
<circle cx="14" cy="14" fill="none" stroke="#fff" stroke-width="1.5" r="10.25" stroke-dasharray="160%, 40%">
|
<circle cx="14" cy="14" fill="none" stroke="#fff" stroke-width="1.5" r="10.25" stroke-dasharray="160%, 40%" />
|
||||||
<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 14 14;360 14 14" keyTimes="0;1"/>
|
|
||||||
</circle>
|
|
||||||
</symbol>
|
</symbol>
|
||||||
<symbol id="small1" viewBox="0 0 20 20">
|
<symbol id="symb-small1" viewBox="0 0 20 20">
|
||||||
<circle cx="10" cy="10" fill="none" stroke="#444" stroke-width="1.5" r="7.25" stroke-dasharray="160%, 40%">
|
<circle cx="10" cy="10" fill="none" stroke="#444" stroke-width="1.5" r="7.25" stroke-dasharray="160%, 40%" />
|
||||||
<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 10 10;360 10 10" keyTimes="0;1"/>
|
|
||||||
</circle>
|
|
||||||
</symbol>
|
</symbol>
|
||||||
<use id="middle" href="#middle1" />
|
<use id="middle" href="#symb-middle" />
|
||||||
<use id="small" href="#small1" />
|
<use id="small" href="#symb-small" />
|
||||||
</svg>
|
</svg>
|
||||||
|
|
Before Width: | Height: | Size: 943 B After Width: | Height: | Size: 632 B |
|
@ -36,7 +36,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.asc-loadmask-image {
|
.asc-loadmask-image {
|
||||||
background-image: ~"url(@{common-image-const-path}/load-mask/loading.svg#middle)";
|
//background-image: ~"url(@{common-image-const-path}/load-mask/loading.svg#middle)";
|
||||||
|
background-image: ~"url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyOCAyOCI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjEuNSIgcj0iMTAuMjUiIHN0cm9rZS1kYXNoYXJyYXk9IjE2MCUsIDQwJSIgLz48L3N2Zz4=)";
|
||||||
height: @loadmask-image-height;
|
height: @loadmask-image-height;
|
||||||
width: @loadmask-image-width;
|
width: @loadmask-image-width;
|
||||||
float: left;
|
float: left;
|
||||||
|
@ -57,7 +58,8 @@
|
||||||
transform: translate(-50%, 0);
|
transform: translate(-50%, 0);
|
||||||
|
|
||||||
.asc-loadmask-image {
|
.asc-loadmask-image {
|
||||||
background-image: ~"url(@{common-image-const-path}/load-mask/loading.svg#small)";
|
//background-image: ~"url(@{common-image-const-path}/load-mask/loading.svg#small)";
|
||||||
|
background-image: ~"url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PGNpcmNsZSBjeD0iMTAiIGN5PSIxMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNDQ0IiBzdHJva2Utd2lkdGg9IjEuNSIgcj0iNy4yNSIgc3Ryb2tlLWRhc2hhcnJheT0iMTYwJSwgNDAlIiAvPjwvc3ZnPg==)";
|
||||||
height: @loadmask-small-image-height;
|
height: @loadmask-small-image-height;
|
||||||
width: @loadmask-small-image-width;
|
width: @loadmask-small-image-width;
|
||||||
}
|
}
|
||||||
|
@ -104,3 +106,20 @@
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes slidein {
|
||||||
|
from {
|
||||||
|
transform: rotate(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#loadmask-spinner {
|
||||||
|
animation-duration: .8s;
|
||||||
|
animation-name: slidein;
|
||||||
|
animation-iteration-count: infinite;
|
||||||
|
animation-timing-function: linear;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue