0
I have this img that appears a gif with effect of load:
<img id="loading" src="~/images/loading.gif" alt="Updating ..." style="display: none;" />
$(document).ready(function () {
$('#loading').hide();
$('#btn-substituir').click(
    function () {
        $('#loading').show();
    }
);
});
And this function to appear, but I would like it to appear above the page, and in the middle. The way it is, it drops the data, and the image appears loading.
It worked right, how can I darken the screen from below, and leave the
imgabove??– Mariana
Then you’d have to put the image inside a div.
– Sam
You have to put the id and style="display: None;" in div. See an example: https://jsfiddle.net/v3qek0r6/
– Sam
All right, thank you.
– Mariana
Vc controls transparency in value
.5of the rgba, which goes from 0 to 1. The.5is half.– Sam