-
Notifications
You must be signed in to change notification settings - Fork 3
Configuration
Sergey Kamardin edited this page Jul 1, 2013
·
5 revisions
Loader can be initialized on element like standard jQuery plugin:
$('.my-element').loading(options);The options object is a configuration, that defaults looks like:
$.fn.loading.defaults = {
opacity: 0.9,
//speedIn: 300,
//speedOut: 1000,
algorithm: {
name: 'snake',
options: {
reverse: true
}
},
effect: ['simple'],
spinner: {
width: 35,
height: 35,
matrix: {
x: null,
y: null
},
pin: {
width: 7,
height: 7,
margin: {
top: 1,
right: 1,
bottom: 0,
left: 0
},
// raw css
css: {
background: "green",
opacity: 0
}
},
interval: 100
},
background: {
color: 'white',
img: null,
borderRadius: 1,
// raw css
css: {
opacity: 0.8
}
}
};