I have an animated gif in the master page which will load whenever user clicks certain buttons. The gif displays but doesn't animate in IE. I have added the class of hide(ZURB) to div and show and hide the div based on this class(addClass/removeClass Jquery).
NOTE: The gif animates, if I use hide() and show() methods in Jquery and remove the zurb css class '.hide' that I have added.
I want to set the visibility of the div to hidden in the master page and then toggle it in only few child pages. How can I achieve this?
CSS:
#loading{position:fixed;top:0px;right:0px;width:100%;height:100%;background-color:#666;background-image:url('ajax-loader.gif'); background-repeat:no-repeat;background-position:center;z-index:10000000; opacity: 0.4;
filter: alpha(opacity=40); /* For IE8 and earlier */}
HTML Master Page:
<div id="loading" runat="server" class="hide"></div>
Jquery in child page:
$("#<%=Master.FindControl("loading").ClientID %>").removeClass("hide");
CSS of hide (Zurb):
.hide {
display: none !important;
}