Hi Berenice,
For this goal you can modify the code above with following one:
pre
//Note you should replace "htmlComponentName" with your html component name.
//Hide component at start.
Apperyio("htmlComponentName").hide();
//Adjust it with animation seconds you need.
var delayToFullLoad = 10;
var currentProgress = 0;
var onInterval = function(){
jQuery('[name="progressbar_div"]').progressbar({
value: currentProgress
});
currentProgress++;
if(currentProgress 100){
window.clearInterval(invervalId);
Code: Select all
//Note you should replace "htmlComponentName" with your html component name.
//Show component when finished.
Apperyio("htmlComponentName").show();
};
};
var invervalId = window.setInterval(onInterval, delayToFullLoad * 1000 / 100);
/pre
Regards.