mirror of
https://github.com/Doodle3D/doodle3d-connect.git
synced 2024-11-04 22:53:23 +01:00
Loader fade in
This commit is contained in:
parent
21598c1afc
commit
612c0b8720
@ -47,7 +47,11 @@ d3d.util = {
|
||||
},
|
||||
showLoader:function(autoHide) {
|
||||
setTimeout(function(){
|
||||
$.mobile.loading('show');
|
||||
var loader = $.mobile.loading('show'); //.addClass("fadePrepare");
|
||||
loader.addClass("fadeIn");
|
||||
/*setTimeout(function() {
|
||||
loader.addClass("fadeIn");
|
||||
},500);*/
|
||||
if(autoHide) {
|
||||
setTimeout(function() {
|
||||
$.mobile.loading('hide');
|
||||
|
@ -48,4 +48,14 @@ body.ui-mobile-viewport {
|
||||
&.info {
|
||||
background: #97DD8A;
|
||||
}
|
||||
}
|
||||
|
||||
/* hack to fadein loader widget (will break normal loader usage) */
|
||||
.ui-loader {
|
||||
display: block;
|
||||
opacity: 0;
|
||||
transition: opacity 0.5s linear;
|
||||
}
|
||||
.ui-loading .ui-loader.fadeIn {
|
||||
opacity: 0.18;
|
||||
}
|
Loading…
Reference in New Issue
Block a user