SVG Animation stops after form submission

Hi ! I have a problem on Safari browser that I'm not able to solve.

On my site I have a form submission with an action. This action takes about 10-15 seconds to finish (because of a big image retouching) so what we want is that when the user makes click on the submit button, a "Loading screen" shows. I've created a div( id=loader ) with a hidden spinner and what we do is that when the user makes clic on the submit button, visibility and opacity of the div is set to 1 and then the form gets submitted.

The problem is that the spinner gets frozen and does not animate (on chrome and firefox it works ok).

document.getElementById('load').style.visibility='visible';document.getElementById('load').style.display='block';document.getElementById('load').style.opacity='0.98';document.formulario_colores.submit();

¿Any solution?

SVG Animation stops after form submission
 
 
Q