I used the example from Jonathan from How can I create a "Please Wait, Loading..." animation using jQuery?. I don't use AJAX calls. Instead I use this firing event:
$("body").addClass("loading");
$("#select-place input").click(function(){
$("body").addClass("loading");
});
$(window).bind("load", function() {
$("body").removeClass("loading");
});
With the first line I get the animated icon in FF24 when the user clicks on my input element. But in IE10 the icon doesn't spin. What I'm doing wrong? I tried to preload the image but that doesn't change anything.
CSS:
.modal {
display: none;
position: fixed;
z-index: 1000;
top: 0;
left: 0;
height: 100%;
width: 100%;
background-color: rgba( 255, 255, 255, .8 ) ;
background-image: url(../images/design/loading.gif);
background-position: 50% 50%;
background-repeat: no-repeat;
opacity: 0.80;
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity = 80);
filter: alpha(opacity = 80)
}
/* When the body has the loading class, we turn
the scrollbar off with overflow:hidden */
body.loading {
overflow: hidden;
}
/* Anytime the body has the loading class, our
modal element will be visible */
body.loading .modal {
display: block;
}
HTML:
<div class="modal"></div>
Why does the icon (gif) doesn't spin? I've tested all browser so far and it works except in IE...