saw a code on the Internet:
$({property: 0}).animate({property: 100}, {
duration: 1000,
step: function() {
var percentage = Math.round(this.property);
$("-sharpprogress").css("width", percentage+"%");
if(percentage == 100) {
$("-sharpprogress").addClass("done");//
}
}
});
I don"t understand $({property: 0}). Is property an attribute of css3? Hope to pass by under the guidance of the god, thank you!