I created a svg and did a little upload animation in the style of a simple loader ... This animation works perfectly in Chrome, but in Firefox and Edge it contains some problems in the animation. In Edge the animation gets frozen, and in Firefox it's like she does not respect the rules of spin, and it all goes crazy on the screen.
css code
#Layer_1 {
position: relative;
top: 125px;
left: 95%;
}
.loader {
position: absolute;
margin: auto;
transform: translate(-50%,-50%);
width: 420px;
}
.plane {
animation: spin 3000ms linear infinite;
fill: #FFF;
transform-origin: 50% 50%;
}
@keyframes spin{
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
SVG HTML code:
<div id="loading" class="loader" style="display: block">
<svg id="Layer_1" data-name="Layer 1" viewBox="0 0 1920 260">
<g class="plane">
<path #caminho transform="translate(-871 -451.2)" style="fill: #1e73be"/>
<path #caminho transform="translate(-871 -451.2)" style="fill: #1e73be"/>
<path #caminho transform="translate(-871 -451.2)" style="fill: #1e73be"/>
<path #caminho transform="translate(-871 -451.2)" style="fill: #1e73be"/>
<path #caminho transform="translate(-871 -451.2)" style="fill: #1e73be"/>
</g>
</svg>
Does not this way support other browsers besides Chrome?